This project containerizes a pre-trained sklearn model (model_data/boston_housing_prediction.joblib
) that has been trained to predict housing prices in Boston.
- Create a virtualenv and activate it
make setup
- Run
make install
to install the necessary dependencies
- Standalone:
python app.py
- Run in Docker:
./run_docker.sh
- Run in Kubernetes:
./run_kubernetes.sh
A sample call can be found in make_predictions.sh
- Setup and Configure Docker locally
- Setup and Configure Kubernetes locally
- Create Flask app in Container
- Run via kubectl
To push locally built docker image to your repo edit and then run upload_docker.sh