topics/flask_container_ci2/README.md
Your mission, should you choose to accept it, involves developing an app, containerize it and set up a CI for it. Please read carefully all the instructions.
If any of the following steps is not working, it is expected from you to fix them
python3 -m venv challenge_venvsource challenge_venv/bin/activatepip install -r requirements.txtchallenges/flask_container_ci directory, if you are not already thereexport FLASK_APP=app/main.pyflask run. If it doesn't works, fix ithttp://127.0.0.1:5000. You should see the following{
"current_uri": "/",
"example": "/matrix/'123n456n789'",
"resources": {
"column": "/columns/<matrix>/<column_number>",
"matrix": "/matrix/<matrix>",
"row": "/rows/<matrix>/<row_number>"
}
}
/matrix/<matrix>
for example, for /matrix/123n456n789 the user will get:
1 2 3 4 5 6 7 8 9
/matrix/<matrix>/<column_number>
for example, for /matrix/123n456n789/2 the user will get:
2 5 8
/matrix/<matrix>/<row_number>
for example, for /matrix/123n456n789/1 the user will get:
1 2 3
Using Docker or Podman, containerize the flask app so users can run the following two commands:
docker build -t app:latest /path/to/Dockerfile
docker run -d -p 5000:5000 app
Great, now that we have a working app and also can run it in a container, let's set up a CI for it so it won't break again in the future In current directory you have a file called tests.py which includes the tests for the app. What is required from you, is:
python tests.py for running the tests.notes.md file which explains reasons, logic, thoughts and anything else you would like to share