Utah Tech Logo

IT3300

DevOps virtualization

Docker Exam - Fall 2021

Docker

Create a directory named exam2.

Part 1

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:

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: