Skip to content

Commit 083d6bb

Browse files
authored
Update README.md
1 parent e6cf710 commit 083d6bb

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

README.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Python Flask ML Demo Project with CI/CD in AWS EC2
1+
# Python Flask ML Demo Project with CI/CD
22

33
| 1. CI Status <br>(build and test) | 2. CD status <br>(docker build and push in DockerHub) | 3. CD Status <br>(AWS EC2 docker pull and run) |
44
| ---- | ---- | ---- |
@@ -50,9 +50,14 @@ Then a docker image is create and pushed in DockerHub public repository in anoth
5050
[Link to YML: docker-image.yml](https://github.com/matiaspakua/ml-demo-project/blob/189d424ad72ed630ede8a489aa8804dd2a153403/.github/workflows/docker-image.yml)
5151

5252
### Step 03
53-
A third workflow is executed when the first two are executed successfully and the image is pulled and deployed in a AWS Ubuntu EC2 instance.
53+
A third workflow is executed when the first two are executed successfully and the image is pulled and deployed in a AWS Ubuntu EC2 instance or AZURE Container Instance:
54+
55+
[Link to YML: docker-run.yml AWS EC2](https://github.com/matiaspakua/ml-demo-project/blob/189d424ad72ed630ede8a489aa8804dd2a153403/.github/workflows/docker-run.yml)
56+
57+
or
58+
59+
[Link to YML: docker-run.yml AZURE](https://github.com/matiaspakua/ml-demo-project/blob/e6cf710bdd2e8c2b8ab3675e4599f919735db657/.github/workflows/deploy-azure.yml)
5460

55-
[Link to YML: docker-run.yml](https://github.com/matiaspakua/ml-demo-project/blob/189d424ad72ed630ede8a489aa8804dd2a153403/.github/workflows/docker-run.yml)
5661

5762
![](https://github.com/matiaspakua/ml-demo-project/blob/595a2ebac6d0ec0e2d49d64d78ba06951692cab6/images/docker_hub_image_push.png)
5863

@@ -64,9 +69,12 @@ Validate that the workflows works properly:
6469

6570
### Step 05
6671

67-
The last step is wait until the image is pulled and running in the EC2 Ubuntu instance and access the public URL to log into the landing page of the app:
72+
The last step is wait until the image is pulled and running in the EC2 Ubuntu or in AZURE Container instance and access the public URL to log into the landing page of the app:
73+
(Depending of the Free Tier that I have at the moment I use one or another)
74+
75+
* AWS EC2: [Landing page on EC2 instance](http://ec2-54-172-218-192.compute-1.amazonaws.com:8080/)
76+
* Azure Container: [Landing page on AZURE instance](https://ml-demo-project-app.azurewebsites.net/)
6877

69-
[Landing page on EC2 instance](http://ec2-54-172-218-192.compute-1.amazonaws.com:8080/)
7078

7179
![](https://github.com/matiaspakua/ml-demo-project/blob/4a9fc571ee3aa40d55b1b63cd7ccbb18466a83d5/images/ml_demo_landing_page.png)
7280

@@ -85,7 +93,7 @@ The last step is wait until the image is pulled and running in the EC2 Ubuntu in
8593

8694
5. validate that all the dependencies listed in the "requirements.txt" are properly installed.
8795

88-
### Setup AWS EC2 instance
96+
### Example of Setup AWS EC2 instance
8997

9098
Launch new instance of EC2 with Ubuntu 20.04, using all the default parameters of the Free-Tier.
9199

@@ -194,4 +202,4 @@ To the execution, run the following command on the root of the project:
194202

195203
1. Publish the docker image in DockerHub as private.
196204
2. Deploy the private image in ubuntu using SSH Keys.
197-
3. Change deploy platform to Digital Ocean: https://m.do.co/c/97f4ed2d8b7a
205+
3. Change deploy platform to Digital Ocean: https://m.do.co/c/97f4ed2d8b7a

0 commit comments

Comments
 (0)