An application providing greeting and echo operations via REST API.
- You'll need virtualenv tool, alternatively you can install it with your OS package manager
pip install virtualenv
- Create new virtual environment with python3
virtualenv -p python3 venv
- Activate it
. venv/bin/activate
- Install application requirement into active virtual environment
pip install -r requirements.txt
Just as for any Django app do
./manage.py runsever
You will need to generate a SECRET_KEY
for Django, see
Django doc for details on how it's used. Recommended
length is not less then 50 chars.
-
Build docker image
docker build -t impulse1_test .
-
Run container
docker run -d --name impulse1_test_instance \ -e SECRET_KEY=${SECRET_KEY} \ impulse1_test
-
See
src/impulse1_test/settings_prod.py
for list of supported environment variables