Skip to content

Commit

Permalink
Updated deployment guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Raulms29 committed Apr 25, 2024
1 parent fefa5bb commit f9ac216
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions docs/deploymentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,34 @@ In our case we are going to use Azure as our cloud provider. The following steps
- Check the public IP of the virtual machine at Azure and save it in `DEPLOY_HOST`.
6. Once the virtual machine is created and the repository is configured, we have to create some rules for the virtual machine:
- Open port 8000 for the gateway.
- Open port 80 for the webapp.
- Open port 443 for the webapp.
- Open port 9091 if you want to be able to access monitoring information.
7. Configure the virtual machine by connecting through SSH:
- Use a tool for connecting to the server using SSH (example... PuTTY, MobaXterm​).
- Use a tool for connecting to the server using SSH (PuTTY, MobaXterm, Bitvise,...​).
- Use the public IP address and the file .pem for making the connection.
- Execute the following commands for preparing the virtual machine:

``
```
sudo apt update
``
``
sudo apt install apt-transport-https ca-certificates curl software-properties-common
``
``
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
``
``
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
``
``
sudo apt update
``
``
sudo apt install docker-ce
``
``
sudo usermod -aG docker ${USER}
``
``
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)"
-o /usr/local/bin/docker-compose
``

``
sudo chmod +x /usr/local/bin/docker-compose
``
```

9. Make a release in GitHub:
8. Make a release in GitHub:
- On the right-hand side of the main Code section of our repository, there is a section called Releases. It will be needed to add a new version following the version naming convention.
- Once the release is made, some GitHub actions will be triggered, and the containers will be tested and running once everything finishes.
- If some test fails during the process, deployment will be automatically aborted.

0 comments on commit f9ac216

Please sign in to comment.