Skip to content

Oteemo/k8s-training-image-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple flask server that performs image processing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published