-
install dependencies
pip install requirements.txt
-
Initialize service
python manage.py migrate python manage.py createsuperuser
-
Run service
python manage.py runserver
And go to http://127.0.0.1:8000
-
Launch test
./functional_test.sh
-
Create my_service.env file containing:
POSTGRES_PASSWORD=mypassword POSTGRES_USER=mydatabaseuser POSTGRES_DB=mydatabase SECRET_KEY=mysecretkey
-
Build and launch containers
docker-compose up
-
Migrate database and create superuser
docker-compose exec web python manage.py collectstatic docker-compose exec web python manage.py migrate docker-compose exec web python manage.py createsuperuser
And go to http://127.0.0.1
docker-compose -f docker-compose.test.yml -p ci build
docker-compose -f docker-compose.test.yml -p ci up -d
docker logs -f ci_test_1
docker wait ci_test_1