A Python Flask application that says "Hello, World!"
- "Dockerize" the application, providing an image and a configuration for running locally with Docker Compose.
- Provide a script to retrieve data from application and perform basic parsing.
- Provide a reverse proxy configuration.
- Provide a
Dockerfileto build and run the application. - Modify the application to replace Hello, World! with an optional string set using an environment variable and defaulting to Hello, World!
- Provide a
docker-compose.ymlfile to run the application and set a custom string using an environment variable.
This should result in the ability to navigate to http://localhost:5000/ and see the custom greeting.
Provide a script or code in a language or tool of your choice that will parse
the data returned from http://localhost:5000/data and create a file in a
files/ sub-directory named <id>.txt with the name as the contents of the
file.
E.g. files/3fc4ccfe745870e2c0d99f71f30ff0656c8dedd41cc1d7d3d376b0dbe685e2f3.txt
Note: The SHA256 sum of each file's contents (<name>) should match the <id>.
Provide a minimal reverse proxy configuration for the application. This can be anything - an Nginx, Apache, or Traefik config, a Terraform, CloudFormation, or CDK configuration for AWS Load Balancing, etc.
It does not have to be implemented and functional in this exercise.
Idea: Try the nginx or traefik Docker image ran from the same Docker Compose file as the application.
Push your solution to your own repository on GitHub, GitLab, another public repository, or provide an archive file (.zip) to the team.