Clone this git repo to your local workspace and follow the below
Note: Steps 2, 3 & 4 should be inside the Dockerfile
- Create a new branch (Git). branch name should be your
first name
- Create a folder under /usr/local/tomcat/webapps called
ROOT
- Create an index.html file with a simple html h1 with
Hello World
inside - Copy the index.html to the
/usr/local/tomcat/webapps/ROOT
folder - Build the docker image
- Run the docker container from the image you have created, expose it locally to port
3111
- Browse to http://localhost:3111 and verify you are able to get the
Hello World
- Commit your changes locally to your newely created branch
- You won't be able to push the changes, have them commited locally only
- content of the
Dockerfile
- content of
index.html
- git commands that you have been using
- docker commands that you have been using
- Screenshot of the response (can be browser or curl response)