2020-02-28 12:55:21 +01:00
|
|
|
SHELL := /bin/bash
|
2020-02-13 10:01:33 +01:00
|
|
|
|
|
|
|
run-system-tests:
|
|
|
|
echo "TODO: write complete system tests"
|
|
|
|
|
|
|
|
run-service-tests:
|
|
|
|
git submodule foreach 'make run-tests'
|
|
|
|
|
|
|
|
build-dev:
|
|
|
|
git submodule foreach 'make build-dev'
|
|
|
|
make -C haproxy build-dev
|
|
|
|
|
|
|
|
run-dev: | build-dev
|
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -p 127.0.0.1:8000:8000/tcp up
|
|
|
|
|
|
|
|
build-prod:
|
2020-02-28 12:55:21 +01:00
|
|
|
git submodule status | awk '{ gsub(/[^0-9a-f]/, "", $$1); gsub("-","_",$$2); print toupper($$2)"_COMMIT_HASH="$$1 }' > .env
|
2020-02-13 10:01:33 +01:00
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.prod.yml build
|
|
|
|
|
|
|
|
run-prod: | build-prod
|
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.prod.yml -p 127.0.0.1:8000:8000/tcp up
|