From a643b697f868abe49a7aba1128549483abff3562 Mon Sep 17 00:00:00 2001 From: apostolof Date: Sat, 13 Feb 2021 16:26:10 +0200 Subject: [PATCH] refactor: remove unused env file, fix image run Makefile targets --- docker/Makefile | 12 ++++++------ docker/env/concordia.docker.env | 7 ------- 2 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 docker/env/concordia.docker.env diff --git a/docker/Makefile b/docker/Makefile index 3ddded8..e707706 100755 --- a/docker/Makefile +++ b/docker/Makefile @@ -72,21 +72,21 @@ run-app-host-chain: build-contracts-provider: @docker build ../ -f ./concordia-contracts-provider/Dockerfile -t ecentrics/concordia-contracts-provider --build-arg TZ=Europe/Athens run-contracts-provider-staging: - @docker run -d -v ${CONTRACTS_PROVIDER_VOLUMES}/contracts:/mnt/concordia/contracts --env-file=./env/contracts-provider.env -e NODE_ENV=production -p 8400:8400 --name concordia-contracts-provider --net=concordia_concordia_network ecentrics/concordia-contracts-provider:latest -run-contracts-provider: @docker run -d -v ${CONTRACTS_PROVIDER_VOLUMES}/contracts:/mnt/concordia/contracts --env-file=./env/contracts-provider.env -p 8400:8400 --name concordia-contracts-provider --net=concordia_concordia_network ecentrics/concordia-contracts-provider:latest +run-contracts-provider: + @docker run -d -v ${CONTRACTS_PROVIDER_VOLUMES}/contracts:/mnt/concordia/contracts --env-file=./env/contracts-provider.env -e NODE_ENV=production -p 8400:8400 --name concordia-contracts-provider --net=concordia_concordia_network ecentrics/concordia-contracts-provider:latest # Pinner targets build-pinner: @docker build ../ -f ./concordia-pinner/Dockerfile -t ecentrics/concordia-pinner --build-arg TZ=Europe/Athens run-pinner-staging: - @docker run -d -v ${PINNER_VOLUMES}/orbitdb:/mnt/concordia/orbitdb --env-file=./env/pinner.env -e NODE_ENV=production -p 4444:4444 --name concordia-pinner --net=concordia_concordia_network ecentrics/concordia-pinner:latest -run-pinner: @docker run -d -v ${PINNER_VOLUMES}/orbitdb:/mnt/concordia/orbitdb --env-file=./env/pinner.env -p 4444:4444 --name concordia-pinner --net=concordia_concordia_network ecentrics/concordia-pinner:latest +run-pinner: + @docker run -d -v ${PINNER_VOLUMES}/orbitdb:/mnt/concordia/orbitdb --env-file=./env/pinner.env -e NODE_ENV=production -p 4444:4444 --name concordia-pinner --net=concordia_concordia_network ecentrics/concordia-pinner:latest run-pinner-staging-host: - @docker run -d -v ${PINNER_VOLUMES}/orbitdb:/mnt/concordia/orbitdb --env-file=./env/pinner.env -e NODE_ENV=production --net=host --name concordia-pinner ecentrics/concordia-pinner:latest -run-pinner-host: @docker run -d -v ${PINNER_VOLUMES}/orbitdb:/mnt/concordia/orbitdb --env-file=./env/pinner.env --net=host --name concordia-pinner ecentrics/concordia-pinner:latest +run-pinner-host: + @docker run -d -v ${PINNER_VOLUMES}/orbitdb:/mnt/concordia/orbitdb --env-file=./env/pinner.env -e NODE_ENV=production --net=host --name concordia-pinner ecentrics/concordia-pinner:latest # Other clean-images: diff --git a/docker/env/concordia.docker.env b/docker/env/concordia.docker.env deleted file mode 100644 index 1810795..0000000 --- a/docker/env/concordia.docker.env +++ /dev/null @@ -1,7 +0,0 @@ -# Variables needed in runtime (in browser) -REACT_APP_RENDEZVOUS_HOST=rendezvous -REACT_APP_RENDEZVOUS_PORT=9090 - -# If the rendezvous server is running on host use these instead -#REACT_APP_RENDEZVOUS_HOST=127.0.0.1 -#REACT_APP_RENDEZVOUS_PORT=9090