A showcase task. Just helping someone else to apply for the job...
docker-compose up -dNote: On production environment you need to run with -f flag due to how docker-compose command works:
docker-compose -f docker-compose.yml -dAlthough this is not needed as we are deploying to Heroku.
To set up a python environment for development we need to upgrade our pip installation
and install pipenv for our dependency management. Read more
pip install --upgrade pip && pip install pipenvNow just install all dependencies from a lock file.
cd /path/to/project/folder/planeks && pipenv installLast command will initialize virtual environment and install all necessary python packages.
To install packages necessary for development run pipenv install --dev.
Tests are written for core functionality only (like in most agile-developed projects).
To run tests we need to "up" postgres and redis containers
docker-compose up -d postgres redis && sleep 10 && python manage.py test -v 2Note: We are sleeping because we want to let postgres and redis start