DevOps virtualization
Create a directory named exam2.
Begin by downloading the tar file found here. Extract it so it shows up in your exam2 directory using something like tar -xvf filters.tar. You should do all your work in this new directory. Your dir structure should look something like this:
exam2/
├── filters
├── alice.txt
├── Dockerfile
└── text
└── foo.txt
You should create the Dockerfile and make any configurations necessary to make the following steps work. You do NOT need to use docker-compose for this.
Create a Dockerfile (in the filters directory) that will:
apt updatefilters and fortune.PATH. The contents of this environment variable will be $PATH:/usr/games. (This just makes ubuntu aware of where the new filters and fortune program are installed)app.sh file from above into the / directory of the imagealice.txt into /foo.txt of the image.app.sh script when the container launches (HINT: use CMD)The app.sh script also expects that you pass a bind mound to the container at runtime. The bind mount source should be your text directory. The target for the bind mount should be /text.
When you run your container, you should see a bunch of tests that are run by app.sh. Feel free to run it as many times as you would like.
You should tag the image and upload it to docker hub.
In a single word or pdf document:
text subdirectory. (or a screenshot)