Removal of putting .env file into the docker image for monitor (#289)

This commit is contained in:
Alexander Kolotov 2020-02-21 16:56:55 +03:00 committed by GitHub
parent df0dc1c313
commit 8977ed6d3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 12 deletions

@ -97,8 +97,7 @@ services:
build: build:
context: .. context: ..
dockerfile: monitor/Dockerfile dockerfile: monitor/Dockerfile
args: env_file: ../e2e-commons/components-envs/monitor.env
DOT_ENV_PATH: e2e-commons/components-envs/monitor.env
entrypoint: yarn check-and-start entrypoint: yarn check-and-start
ports: ports:
- "3010:3010" - "3010:3010"
@ -108,8 +107,7 @@ services:
build: build:
context: .. context: ..
dockerfile: monitor/Dockerfile dockerfile: monitor/Dockerfile
args: env_file: ../e2e-commons/components-envs/monitor-erc20.env
DOT_ENV_PATH: e2e-commons/components-envs/monitor-erc20.env
entrypoint: yarn check-and-start entrypoint: yarn check-and-start
ports: ports:
- "3011:3011" - "3011:3011"
@ -119,8 +117,7 @@ services:
build: build:
context: .. context: ..
dockerfile: monitor/Dockerfile dockerfile: monitor/Dockerfile
args: env_file: ../e2e-commons/components-envs/monitor-erc20-native.env
DOT_ENV_PATH: e2e-commons/components-envs/monitor-erc20-native.env
entrypoint: yarn check-and-start entrypoint: yarn check-and-start
ports: ports:
- "3012:3012" - "3012:3012"
@ -130,8 +127,7 @@ services:
build: build:
context: .. context: ..
dockerfile: monitor/Dockerfile dockerfile: monitor/Dockerfile
args: env_file: ../e2e-commons/components-envs/monitor-amb.env
DOT_ENV_PATH: e2e-commons/components-envs/monitor-amb.env
entrypoint: yarn check-and-start entrypoint: yarn check-and-start
ports: ports:
- "3013:3013" - "3013:3013"

@ -15,9 +15,9 @@ RUN mv ./contracts/build ./ && rm -rf ./contracts/* ./contracts/.[!.]* && mv ./b
COPY ./commons ./commons COPY ./commons ./commons
COPY ./monitor ./monitor COPY ./monitor ./monitor
ARG DOT_ENV_PATH=./monitor/.env
COPY ${DOT_ENV_PATH} ./monitor/.env
WORKDIR /mono/monitor WORKDIR /mono/monitor
CMD echo "To start the monitor run:" \ CMD echo "To start the monitor web service run:" \
"yarn check-and-start" "yarn start" \
"To run monitor scripts run:" \
"yarn check-all"