File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ provisioning an AWS EC2 instance with Terraform, and running your container on E
1414 that sets up the working directory, copies your source files, compiles Java files,
1515 exposes the required port, and sets the default command to launch your app.
16164 . Build the Docker image locally and verify that it works.
17- * docker build -t <name > . _ example devops-demo
18- * docker run -p <host-port >:<container-port > <name > _ example: 8080:80
17+ * docker build -t <name > . _ example devops-demo _
18+ * docker run -p <host-port >:<container-port > <name > _ example: 8080:80 _
1919
2020---
2121
@@ -74,7 +74,7 @@ provisioning an AWS EC2 instance with Terraform, and running your container on E
7474 * sudo systemctl enable docker
7575 * docker pull ghcr.io/<your-username >/<repo-name >: latest
7676 * docker run -d -p 80:80 ghcr.io/<your-username >/<repo-name >: latest
77- _ In my case the latter two were:
77+ _ In my case the latter two were:_
7878 * sudo docker pull ghcr.io/teodordichev/devopsrest/devops-demo: latest
7979 * sudo docker run -d -p 80:80 ghcr.io/teodordichev/devopsrest/devops-demo: latest
80805 . Verify the container is running and accessible locally.
You can’t perform that action at this time.
0 commit comments