Skip to content

Commit

Permalink
Merge pull request #66 from poanetwork/docker-package-lock
Browse files Browse the repository at this point in the history
Change oracle production docker context
  • Loading branch information
akolotov authored May 23, 2019
2 parents d98073b + a714aec commit 7a1ce41
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 6,875 deletions.
12 changes: 9 additions & 3 deletions oracle-e2e/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ services:
ports:
- "15672:15672"
bridge:
build: ../oracle
build:
context: ..
dockerfile: oracle/Dockerfile
environment:
- NODE_ENV=production
- BRIDGE_MODE=NATIVE_TO_ERC
Expand All @@ -42,7 +44,9 @@ services:
- ALLOW_HTTP=yes
command: "true"
bridge-erc:
build: ../oracle
build:
context: ..
dockerfile: oracle/Dockerfile
environment:
- NODE_ENV=production
- BRIDGE_MODE=ERC_TO_ERC
Expand Down Expand Up @@ -70,7 +74,9 @@ services:
- ALLOW_HTTP=yes
command: "true"
bridge-erc-native:
build: ../oracle
build:
context: ..
dockerfile: oracle/Dockerfile
environment:
- NODE_ENV=production
- BRIDGE_MODE=ERC_TO_NATIVE
Expand Down
6 changes: 0 additions & 6 deletions oracle/.dockerignore

This file was deleted.

11 changes: 7 additions & 4 deletions oracle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ RUN apt-get install -y libc6-dev-i386
RUN apt-get install -y wget
RUN apt-get clean

WORKDIR /bridge
WORKDIR /mono
COPY package.json .
COPY package-lock.json .
RUN npm install
COPY . .
COPY contracts/package.json ./contracts/
COPY oracle/package.json ./oracle/
COPY yarn.lock .
RUN yarn install --production
COPY ./oracle ./oracle
WORKDIR /mono/oracle
CMD echo "To start a bridge process run:" \
"VALIDATOR_ADDRESS=<validator address> VALIDATOR_ADDRESS_PRIVATE_KEY=<validator address private key> docker-compose up -d --build"
20 changes: 15 additions & 5 deletions oracle/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ services:
bridge_request:
cpus: 0.1
mem_limit: 500m
build: .
build:
context: ..
dockerfile: oracle/Dockerfile
command: 'true'
env_file: ./.env
environment:
Expand All @@ -45,7 +47,9 @@ services:
bridge_collected:
cpus: 0.1
mem_limit: 500m
build: .
build:
context: ..
dockerfile: oracle/Dockerfile
command: 'true'
env_file: ./.env
environment:
Expand All @@ -59,7 +63,9 @@ services:
bridge_affirmation:
cpus: 0.1
mem_limit: 500m
build: .
build:
context: ..
dockerfile: oracle/Dockerfile
command: 'true'
env_file: ./.env
environment:
Expand All @@ -73,7 +79,9 @@ services:
bridge_senderhome:
cpus: 0.1
mem_limit: 500m
build: .
build:
context: ..
dockerfile: oracle/Dockerfile
command: 'true'
env_file: ./.env
environment:
Expand All @@ -87,7 +95,9 @@ services:
bridge_senderforeign:
cpus: 0.1
mem_limit: 500m
build: .
build:
context: ..
dockerfile: oracle/Dockerfile
command: 'true'
env_file: ./.env
environment:
Expand Down
Loading

0 comments on commit 7a1ce41

Please sign in to comment.