oracle-e2e uses main dockerfile and main contracts submodule.
This commit is contained in:
parent
02d88951e5
commit
85a4a27872
@ -1,28 +0,0 @@
|
||||
FROM node:8
|
||||
|
||||
RUN mkdir /stuff
|
||||
WORKDIR /stuff
|
||||
|
||||
COPY package.json .
|
||||
COPY package-lock.json .
|
||||
|
||||
RUN git clone https://github.com/poanetwork/poa-bridge-contracts.git
|
||||
|
||||
RUN mkdir submodules && \
|
||||
mv poa-bridge-contracts submodules && \
|
||||
cd submodules/poa-bridge-contracts && \
|
||||
git fetch && \
|
||||
git checkout 2.2.0
|
||||
|
||||
RUN npm install --unsafe-perm
|
||||
|
||||
RUN cd submodules/poa-bridge-contracts && \
|
||||
npm install && \
|
||||
./node_modules/.bin/truffle compile && \
|
||||
cd deploy && \
|
||||
npm install
|
||||
|
||||
ADD . .
|
||||
|
||||
|
||||
CMD ["npm", "start"]
|
@ -2,7 +2,7 @@ const path = require('path')
|
||||
const shell = require('shelljs')
|
||||
|
||||
const envsDir = path.join(__dirname, 'envs')
|
||||
const deployContractsDir = path.join(__dirname, 'submodules/poa-bridge-contracts/deploy')
|
||||
const deployContractsDir = path.join(__dirname, '../contracts/deploy')
|
||||
const erc20ScriptDir = path.join(__dirname, 'scripts')
|
||||
|
||||
shell.cp(path.join(envsDir, 'contracts-deploy.env'), path.join(deployContractsDir, '.env'))
|
||||
|
@ -98,5 +98,5 @@ services:
|
||||
- ALLOW_HTTP=yes
|
||||
command: "true"
|
||||
e2e:
|
||||
build: .
|
||||
build: ../
|
||||
command: "true"
|
||||
|
@ -1,7 +1,7 @@
|
||||
cd $(dirname $0)
|
||||
|
||||
docker-compose up -d --build --force-recreate
|
||||
docker-compose run e2e npm run deploy
|
||||
docker-compose run e2e yarn workspace oracle-e2e run deploy
|
||||
docker-compose run -d bridge npm run watcher:signature-request
|
||||
docker-compose run -d bridge npm run watcher:collected-signatures
|
||||
docker-compose run -d bridge npm run watcher:affirmation-request
|
||||
@ -13,7 +13,7 @@ docker-compose run -d bridge-erc-native npm run watcher:collected-signatures
|
||||
docker-compose run -d bridge-erc-native npm run watcher:affirmation-request
|
||||
docker-compose run -d bridge npm run sender:home
|
||||
docker-compose run -d bridge npm run sender:foreign
|
||||
docker-compose run e2e npm start
|
||||
docker-compose run e2e yarn workspace oracle-e2e run start
|
||||
|
||||
rc=$?
|
||||
docker-compose down
|
||||
|
Loading…
Reference in New Issue
Block a user