Run Dockerized application

dmovva
SREE_1.docx

Overview

A junior developer has asked you to help him Dockerize an application so that his buddies can work on it locally. The app is a part of a secret project and he can’t tell you what it does, other than that it’s a web app configurable via environment variables, and it has a dependency on Redis. Also, the app currently has a bug where “it stops working” after “a little while.” He’s super sorry about that and he promises that it will be fixed in the next sprint… if you can help him figure out what’s wrong with it. Are you a bad enough dude to help out this poor engineer?

Instructions

1. Run the Dockerized app yourself (including Redis). If you have to make any changes to the Dockerfile so that the application starts properly, send us your edited Dockerfile, along with any other configuration files you create to get it working. Briefly explain to us (as the junior developer) what your fixes are and how to run everything.

2. Send a screenshot of the a valid, non-error (ie, HTTP 200 status code) result of the web app running in the docker container.

3. What can you tell the developer that might help him address any bugs in the upcoming sprint?

Basic Requirements

· All documentation should be in Markdown format.

· Run the app in Docker. Feel free to use the full suite of Docker tools (DAB, Compose, Swarm, etc.)

· Reproduce the behavior the developer describes as “it stops working.”

· Describe any failures you observe and indicate where (in code) the developer should focus when fixing those failures.

Bonus Points

· The developer snuck a FizzBuzz implementation into the code, but there’s a bug in it. What’s the bug and what does he need to change to fix it?

· Can you make this app’s Docker image any smaller?

· Write an application that successfully implements FizzBuzz in a language of your choice.

Dockerfile

Copy and paste the text below into your dockerfile.

FROM alpine:latest RUN apk update && apk add wget ca-certificates && \ cd /sbin && wget https://s3.amazonaws.com/ml-sreracha/sreracha RUN adduser -S -H -s /bin/sh www EXPOSE 80 USER www ENTRYPOINT /sbin/sreracha