|
@ -11,7 +11,7 @@ stop-clean-data: |
|
|
# Contracts targets
|
|
|
# Contracts targets
|
|
|
build-contracts: |
|
|
build-contracts: |
|
|
@docker build ../ -f ./concordia-contracts/Dockerfile --target compile -t concordia-contracts --build-arg TZ=Europe/Athens |
|
|
@docker build ../ -f ./concordia-contracts/Dockerfile --target compile -t concordia-contracts --build-arg TZ=Europe/Athens |
|
|
build-migrate-contracts: |
|
|
build-contracts-migrate: |
|
|
@docker build ../ -f ./concordia-contracts/Dockerfile -t concordia-contracts-migrate --build-arg TZ=Europe/Athens |
|
|
@docker build ../ -f ./concordia-contracts/Dockerfile -t concordia-contracts-migrate --build-arg TZ=Europe/Athens |
|
|
build-contracts-tests: |
|
|
build-contracts-tests: |
|
|
@docker build ../ -f ./concordia-contracts/Dockerfile --target test -t concordia-contracts-tests --build-arg TZ=Europe/Athens |
|
|
@docker build ../ -f ./concordia-contracts/Dockerfile --target test -t concordia-contracts-tests --build-arg TZ=Europe/Athens |
|
@ -20,11 +20,14 @@ run-contract-tests: |
|
|
run-contract-tests-host-chain: |
|
|
run-contract-tests-host-chain: |
|
|
@docker run --rm -v `pwd`/reports/contracts/:/usr/test-reports/ --env-file=./env/contracts.env --net=host concordia-contracts-tests:latest |
|
|
@docker run --rm -v `pwd`/reports/contracts/:/usr/test-reports/ --env-file=./env/contracts.env --net=host concordia-contracts-tests:latest |
|
|
run-contracts-migrate: |
|
|
run-contracts-migrate: |
|
|
@docker run --rm --env-file=./env/contracts.env concordia-contracts-migrate:latest |
|
|
@cd .. &&\
|
|
|
|
|
|
docker run --rm -v `pwd`/packages/concordia-contracts/build/:/usr/src/concordia/packages/concordia-contracts/build/ --env-file=./docker/env/contracts.env concordia-contracts-migrate:latest |
|
|
run-contracts-migrate-host-chain: |
|
|
run-contracts-migrate-host-chain: |
|
|
@docker run --rm --env-file=./env/contracts.env --net=host concordia-contracts-migrate:latest |
|
|
@cd .. &&\
|
|
|
|
|
|
docker run --rm -v `pwd`/packages/concordia-contracts/build/:/usr/src/concordia/packages/concordia-contracts/build/ --env-file=./docker/env/contracts.env --net=host concordia-contracts-migrate:latest |
|
|
get-contracts: |
|
|
get-contracts: |
|
|
@cd .. && docker run --rm -v `pwd`/packages/concordia-contracts/build/:/build --entrypoint=sh concordia-contracts:latest -c 'cp /usr/src/concordia/packages/concordia-contracts/build/* /build' |
|
|
@cd .. && \
|
|
|
|
|
|
docker run --rm -v `pwd`/packages/concordia-contracts/build/:/build --entrypoint=sh concordia-contracts:latest -c 'cp /usr/src/concordia/packages/concordia-contracts/build/* /build' |
|
|
|
|
|
|
|
|
# App targets
|
|
|
# App targets
|
|
|
build-app: |
|
|
build-app: |
|
@ -32,7 +35,11 @@ build-app: |
|
|
build-app-tests: |
|
|
build-app-tests: |
|
|
@docker build ../ -f ./concordia-app/Dockerfile --target test -t concordia-app-tests --build-arg TZ=Europe/Athens |
|
|
@docker build ../ -f ./concordia-app/Dockerfile --target test -t concordia-app-tests --build-arg TZ=Europe/Athens |
|
|
run-app-tests: |
|
|
run-app-tests: |
|
|
@docker run --rm -v `pwd`/reports/app/:/usr/test-reports/ --env-file=./env/app.env concordia-app-tests:latest |
|
|
@docker run --rm -v `pwd`/reports/app/:/usr/test-reports/ --env-file=./env/concordia.env concordia-app-tests:latest |
|
|
|
|
|
run-app: |
|
|
|
|
|
@docker run -d --env-file=./env/concordia.env -p 8473:80 --name concordia-app concordia-app:latest |
|
|
|
|
|
run-app-host-chain: |
|
|
|
|
|
@docker run -d --env-file=./env/concordia.env --name concordia-app --net=host concordia-app:latest |
|
|
|
|
|
|
|
|
# Other
|
|
|
# Other
|
|
|
clean-images: |
|
|
clean-images: |
|
|