I have written some scripts to run the docker image locally, which builds it and starts it connecting it to the local port 8000. I also wrote script to upload this image to make it easier to update the registry image.
- Run
make setup
, which will create a virtual environment. - Activate the venv,
source ~/.devops/bin/activate
make install
To lint the project, you can run make lint
- Standalone:
python3 app.py
- Run in Docker:
./run_docker.sh
- Run in Kubernetes:
./run_kubernetes.sh
To test it afterwards, you can run the script ./make_prediction.sh
To see the results, you can look into output_txt_files where the output of the docker container and kubernetes are saved.