|
@ -1,4 +1,4 @@ |
|
|
# Targets for building/running/stopping both apps (uses the docker-compose file)
|
|
|
# Targets for building/running/stopping the blockchain and rendezvous server (using the docker-compose file)
|
|
|
build: |
|
|
build: |
|
|
@docker-compose -f ./docker-compose.yml -p concordia build; |
|
|
@docker-compose -f ./docker-compose.yml -p concordia build; |
|
|
run: |
|
|
run: |
|
@ -8,6 +8,16 @@ stop: |
|
|
stop-clean-data: |
|
|
stop-clean-data: |
|
|
@docker-compose -f ./docker-compose.yml -p concordia down -v |
|
|
@docker-compose -f ./docker-compose.yml -p concordia down -v |
|
|
|
|
|
|
|
|
|
|
|
# Ganache targets
|
|
|
|
|
|
build-ganache: |
|
|
|
|
|
@docker build . -f ./ganache/Dockerfile -t concordia-ganache |
|
|
|
|
|
run-ganache: |
|
|
|
|
|
@docker-compose -f ./ganache/docker-compose.yml -p concordia up -d |
|
|
|
|
|
|
|
|
|
|
|
# Rendezvous targets
|
|
|
|
|
|
run-rendezvous: |
|
|
|
|
|
@docker-compose -f ./rendezvous/docker-compose.yml -p concordia up -d |
|
|
|
|
|
|
|
|
# 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 |
|
@ -43,16 +53,6 @@ run-app: |
|
|
run-app-host-chain: |
|
|
run-app-host-chain: |
|
|
@docker run -d --env-file=./env/concordia.env --name concordia-app --net=host concordia-app:latest |
|
|
@docker run -d --env-file=./env/concordia.env --name concordia-app --net=host concordia-app:latest |
|
|
|
|
|
|
|
|
# Ganache targets
|
|
|
|
|
|
build-ganache: |
|
|
|
|
|
@docker build . -f ./ganache/Dockerfile -t concordia-ganache |
|
|
|
|
|
run-ganache: |
|
|
|
|
|
@docker-compose -f ./ganache/docker-compose.yml -p concordia up -d |
|
|
|
|
|
|
|
|
|
|
|
# Rendezvous targets
|
|
|
|
|
|
run-rendezvous: |
|
|
|
|
|
@docker-compose -f ./rendezvous/docker-compose.yml -p concordia up -d |
|
|
|
|
|
|
|
|
|
|
|
# Other
|
|
|
# Other
|
|
|
clean-images: |
|
|
clean-images: |
|
|
@docker rmi `docker images -q -f "dangling=true"` |
|
|
@docker rmi `docker images -q -f "dangling=true"` |
|
|