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
|
2020-06-10 13:58:26 +02:00
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
|
|
|
|
|
2020-06-19 08:56:20 +02:00
|
|
|
stop-dev:
|
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.dev.yml down
|
|
|
|
|
2020-06-10 13:58:26 +02:00
|
|
|
copy-node-modules:
|
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.dev.yml exec client bash -c "cp -r /app/node_modules/ /app/src/"
|
|
|
|
mv openslides-client/client/src/node_modules/ openslides-client/client/
|
2020-02-13 10:01:33 +01:00
|
|
|
|
|
|
|
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
|
2020-06-10 13:58:26 +02:00
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up
|
2020-07-16 15:20:07 +02:00
|
|
|
|
|
|
|
reload-haproxy:
|
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.dev.yml kill -s HUP haproxy
|