|
@ -10,15 +10,21 @@ stop-clean-data: |
|
|
|
|
|
|
|
|
# Contracts targets
|
|
|
# Contracts targets
|
|
|
build-contracts: |
|
|
build-contracts: |
|
|
@docker build ../ -f ./concordia-contracts/Dockerfile -t concordia-contracts --build-arg TZ=Europe/Athens --build-arg SKIP_TESTS="true" --build-arg SKIP_MIGRATE="true" |
|
|
@docker build ../ -f ./concordia-contracts/Dockerfile --target compile -t concordia-contracts --build-arg TZ=Europe/Athens |
|
|
build-migrate-contracts: |
|
|
build-migrate-contracts: |
|
|
@docker build ../ -f ./concordia-contracts/Dockerfile -t concordia-contracts --build-arg TZ=Europe/Athens --build-arg SKIP_TESTS="true" |
|
|
@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 |
|
|
|
|
|
run-contract-tests: |
|
|
|
|
|
@docker run --rm -v `pwd`/reports/:/usr/test-reports/ --env-file=./env/contracts.env concordia-contracts-tests:latest |
|
|
|
|
|
run-contract-tests-host-chain: |
|
|
|
|
|
@docker run --rm -v `pwd`/reports/:/usr/test-reports/ --env-file=./env/contracts.env --net=host concordia-contracts-tests:latest |
|
|
|
|
|
run-contracts-migrate: |
|
|
|
|
|
@docker run --rm --env-file=./env/contracts.env concordia-contracts-migrate:latest |
|
|
|
|
|
run-contracts-migrate-host-chain: |
|
|
|
|
|
@docker run --rm --env-file=./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' |
|
|
get-contracts-tests: |
|
|
|
|
|
@docker run --rm -v `pwd`/reports/:/app concordia-contracts-tests:latest sh -c 'mkdir -p /app/contracts && cp /usr/test-reports/* /app/contracts' |
|
|
|
|
|
|
|
|
|
|
|
# App targets
|
|
|
# App targets
|
|
|
build-app: |
|
|
build-app: |
|
|