From f9ac2160fb1f47bf0477f80b399c9ca1cdf840b9 Mon Sep 17 00:00:00 2001 From: Raulms29 Date: Thu, 25 Apr 2024 18:49:38 +0200 Subject: [PATCH] Updated deployment guide --- docs/deploymentGuide.md | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/docs/deploymentGuide.md b/docs/deploymentGuide.md index aff0d93d..9c05b201 100644 --- a/docs/deploymentGuide.md +++ b/docs/deploymentGuide.md @@ -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.