Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 961 Bytes

README.md

File metadata and controls

42 lines (36 loc) · 961 Bytes

k8s-training-image-processor

Local Developer Setup

Download the python3 binary

This project was developed using Python 3.7.1. Navigate to the following link and download the python3 binary for your particular os.

Note the location that you saved this binary too.

Virtualenv

$ cd k8s-training-image-processor
$ pip install virtualenv
$ virtualenv -p /path/to/you/python3/binary venv
$ source venv/bin/activate

Test that you're now using the correct python binary

$ python --version

Install dependancies

$ cd app
$ pip install -r requirements.txt

Run the server

#from the k8s-traning-image-processor/app directory
$ python app.py

Run tests

#from the k8s-traning-image-processor/app directory
$ python -m pytest

To exit the venv python environment you can run the following command:

$ deactivate