From 065106e455e95939bc44a314bcea17f8187c437b Mon Sep 17 00:00:00 2001 From: Debjani Chatterjee Date: Thu, 17 Sep 2020 12:45:03 +0530 Subject: [PATCH 1/3] typo For the UI app ./mvnm clean install --> ./mvnw clean install --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 54b1227..5fc1cd9 100644 --- a/README.md +++ b/README.md @@ -525,7 +525,7 @@ docker build -t myui:v1 . ``` > in case you haven't run the maven build and packaged the UI App, run this where mvnm file is located ``` -./mvnm clean install +./mvnw clean install ``` Now let's run the UI app on port 8081: ``` From f57d9814186a61c211634c8b37cdb92a8a2419bd Mon Sep 17 00:00:00 2001 From: Debjani Chatterjee Date: Thu, 17 Sep 2020 13:10:32 +0530 Subject: [PATCH 2/3] fixed markdown --- README.md | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5fc1cd9..93dee03 100644 --- a/README.md +++ b/README.md @@ -570,22 +570,39 @@ As you can see our UI and Parser apps are not part of the same network. ![alt text](https://github.com/mohaghighi/Covid19-Web-Application/raw/master/images/Labs/Slide48.png) Let's create a network and instruct our containers to connect to it -```docker network create test + +``` +docker network create test ``` + let's stop our docker containers: -```docker stop [container id] + +``` +docker stop [container id] ``` + Let's run our containers again, this time instructing them to join the new network we've just created -```docker run -p [PortHost:PortContainer] [imageName] --net=test + ``` +docker run -p [PortHost:PortContainer] [imageName] --net=test +``` + Run UI application on test network: -```docker run -p 8081:8081 myui:v1 --net=test + +``` +docker run -p 8081:8081 myui:v1 --net=test ``` + Run parser application on test network: -```docker run -p 8082:8082 myapp:v1 --net=test + ``` +docker run -p 8082:8082 myapp:v1 --net=test +``` + Let's inspect our containers again and get their IP addresses based on thier new network -```docker inspect [container name/ID] + +``` +docker inspect [container name/ID] ``` if we try to ping our applications again, they should work fine. From c50734137855c099a886d86a8b37136ed9fe46d6 Mon Sep 17 00:00:00 2001 From: Debjani Chatterjee Date: Tue, 6 Oct 2020 10:09:03 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 93dee03..7ed481a 100644 --- a/README.md +++ b/README.md @@ -365,8 +365,8 @@ Let's start by clining the repos and packaging our Java application with Maven: ### Clone The Repositories ``` -git clone github.com/mohaghighi/covid19-web-application -git clone github.com/mohaghighi/covid19-UI +git clone github.com/rapchic/Covid19-Web-Application +git clone github.com/rapchic/Covid19-UI ``` ### Package Spring Boot with Maven @@ -411,8 +411,6 @@ containers using simple commands and work-saving automation. So let's get started and build our first container image with Docker. > The first step is to craft our dockerfile and the Dockerfile is essentially the build instructions to build the image. - - ![alt text](https://github.com/mohaghighi/Covid19-Web-Application/raw/master/images/Labs/Slide36.png) #### What is a Dockerfile? A set of build instructions to build the image in a file called "dockerfile".