Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add deploying to digital ocean using ansible #71

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

brent-hoover
Copy link
Collaborator

Signed-off-by: Brent Hoover brent@thebuddhalodge.com

brent-hoover and others added 2 commits February 21, 2022 15:11
Signed-off-by: Brent Hoover <brent@thebuddhalodge.com>
Signed-off-by: rickyholland <rickyholland@hotmail.co.uk>
Signed-off-by: rickyholland <rickyholland@hotmail.co.uk>
@RickyHolland RickyHolland force-pushed the deploying-to-digital-ocean-with-ansible branch from c9d610e to 2872afb Compare February 21, 2022 15:11
Signed-off-by: Brent Hoover <brent@thebuddhalodge.com>
Signed-off-by: Brent Hoover <brent@thebuddhalodge.com>
@@ -0,0 +1,167 @@
## At a Glance

This deployment guide's purpose is to provide a simple and easy way to deploy Open Commerce for evaluation purposes or small deployments. This guide is not meant to generate an enterprise production grade deployment, rather Docker Compose is used to manage containers which is not suitable for production deployments.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manage containers which are is not suitable

Open Commerce services will be exposed to the public using [Traefik](https://github.com/containous/traefik/), which
is a cloud native router. Traefik will act as a reverse proxy that will route traffic to Docker containers. As stated above, you will need a registered domain to complete this step, as it will be necessary to manage DNS records for it.

This guide will use the following subdomains, where `example.com` will need to substitute it with your domain:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guide will use the following subdomains, where example.com will need to be substituted with your domain:

git clone git@github.com:reactioncommerce/proxy-traefik.git
```

To make the project disconnected from the original repository you should `rm -rf .git` from within the newly created directory and then `git init`.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To disconnect the project from the original repository...

```

To make the project disconnected from the original repository you should `rm -rf .git` from within the newly created directory and then `git init`.
You should not push any of your changes, especially your DO key, to a public repository and there is no need to do so since the command are intended to run from your local machine.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the commands are (plural)


After the droplet is created either select an existing SSH key to login or click on the "New SSH Key" under the authentication section and copy your public SSH key from your local computer.

Copy the newly created IP address and verify that you can log in into the new server by executing:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy the newly created IP address and verify that you can log in into the new server by executing:

## Set Ansible Environment Variables

Before executing the Ansible playbook, it's necessary to set variables that are specific to your deployment. Find the
`vars` section in the `reaction.yml` playbook and update as necessary, below is a list of the variable
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it runs on. Suggest separating in to two sentences.

Find the vars section in the reaction.yml playbook and update as necessary. Below is a list of the variables that need to be updated and a description of each:


## Execute the playbook

Now it's time to execute the `reaction.yml` playbook, which automates most of the tedious server configuration tasks, execute the following command:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same suggestion re: 2 sentences.

Now it's time to execute the reaction.yml playbook, which automates most of the tedious server configuration tasks. Execute the following command:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants