-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jenkins file to build oracle docker image #5
base: bellecour
Are you sure you want to change the base?
Changes from 53 commits
3eaaf75
c483290
02f7873
8456812
bf00341
0b5eba4
92e56e4
5fc848b
70e20fc
fc71266
3017ec6
f1de6b8
4db9835
7e986eb
b75a306
69425e5
2c7d234
05703e3
aad99ee
55addbe
86e5627
5d4052a
1ca3468
d3f5b2a
ff776d8
7daba0f
3c455f0
90899f6
b8f932f
a1b75ab
84a72fc
6275ff3
815dded
53873ef
a4ff0bd
9a354fc
8703fa2
6b6251b
63b53a2
f7302a2
568761b
cbd3488
f2bebe4
86cab22
2741535
da9da05
f4c9ab6
afab2fe
ef980a5
bb9984d
6613259
ec30429
4e85302
788b6ae
57d4728
b205550
44b4402
c90fa4a
bcfff49
cc33576
447ffda
f3d53e1
38f8050
f1ce949
9c67eeb
78675d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@Library('[email protected]') _ | ||
|
||
node('docker') { | ||
|
||
buildInfo = getBuildInfo() | ||
buildSimpleDocker_v2( | ||
buildInfo: buildInfo, | ||
dockerfileDir: './oracle', | ||
buildContext: '.', | ||
imageprivacy: 'private', | ||
dockerImageRepositoryName : 'oracle' | ||
) | ||
} | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,5 @@ | |
"test": "NODE_ENV=test mocha" | ||
}, | ||
"dependencies": { | ||
"web3-utils": "1.0.0-beta.30" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,44 @@ | ||
#BRIDGE_MODE=ERC_TO_ERC | ||
HOME_POLLING_INTERVAL=5000 | ||
FOREIGN_POLLING_INTERVAL=1000 | ||
ALLOW_HTTP=no | ||
HOME_RPC_URL=https://kovan.infura.io/mew | ||
FOREIGN_RPC_URL=https://kovan.infura.io/mew | ||
HOME_BRIDGE_ADDRESS=0x86b621b839Ff86Bb59fA57015b02318f9a870d80 | ||
FOREIGN_BRIDGE_ADDRESS=0x8dDCa2eB86D22FcB93342753515986e258A90169 | ||
ERC20_TOKEN_ADDRESS=0x7AA0A62497B5f4120fbe5D26c95bC612c2b96C14 | ||
ORACLE_TAG = | ||
BRIDGE_MODE= | ||
HOME_POLLING_INTERVAL= | ||
FOREIGN_POLLING_INTERVAL= | ||
ALLOW_HTTP= | ||
HOME_RPC_URL= | ||
FOREIGN_RPC_URL= | ||
HOME_BRIDGE_ADDRESS= | ||
FOREIGN_BRIDGE_ADDRESS= | ||
ERC20_TOKEN_ADDRESS= | ||
|
||
VALIDATOR_ADDRESS= | ||
VALIDATOR_ADDRESS_PRIVATE_KEY= | ||
|
||
HOME_GAS_PRICE_ORACLE_URL=https://gasprice.poa.network/ | ||
HOME_GAS_PRICE_SPEED_TYPE=standard | ||
HOME_GAS_PRICE_FALLBACK=1000000000 | ||
HOME_GAS_PRICE_UPDATE_INTERVAL=600000 | ||
HOME_GAS_PRICE_FACTOR=1 | ||
HOME_GAS_PRICE_ORACLE_URL | ||
gfournieriExec marked this conversation as resolved.
Show resolved
Hide resolved
|
||
HOME_GAS_PRICE_SPEED_TYPE= | ||
HOME_GAS_PRICE_FALLBACK= | ||
HOME_GAS_PRICE_UPDATE_INTERVAL= | ||
HOME_GAS_PRICE_FACTOR= | ||
|
||
FOREIGN_GAS_PRICE_ORACLE_URL=https://gasprice.poa.network/ | ||
FOREIGN_GAS_PRICE_SPEED_TYPE=standard | ||
FOREIGN_GAS_PRICE_FALLBACK=1000000000 | ||
FOREIGN_GAS_PRICE_UPDATE_INTERVAL=600000 | ||
FOREIGN_GAS_PRICE_FACTOR=1 | ||
FOREIGN_GAS_PRICE_ORACLE_URL= | ||
FOREIGN_GAS_PRICE_SPEED_TYPE= | ||
FOREIGN_GAS_PRICE_FALLBACK= | ||
FOREIGN_GAS_PRICE_UPDATE_INTERVAL= | ||
FOREIGN_GAS_PRICE_FACTOR= | ||
|
||
QUEUE_URL=amqp://rabbit | ||
REDIS_URL=redis://redis | ||
QUEUE_URL= | ||
REDIS_URL= | ||
|
||
HOME_START_BLOCK= | ||
FOREIGN_START_BLOCK= | ||
|
||
LOG_LEVEL=debug | ||
MAX_PROCESSING_TIME=20000 | ||
LOG_LEVEL= | ||
MAX_PROCESSING_TIME= | ||
|
||
FOREIGN_TO_HOME_DECIMAL_SHIFT= | ||
|
||
#Uncomment these lines only if you are going to send transaction by testing scripts | ||
#USER_ADDRESS=0x59c4474184579b9c31b5e51445b6eef91cebf370 | ||
#USER_ADDRESS_PRIVATE_KEY= | ||
#HOME_MIN_AMOUNT_PER_TX=0.001 | ||
#FOREIGN_MIN_AMOUNT_PER_TX=0.001 | ||
#HOME_TEST_TX_GAS_PRICE=1000000000 | ||
#FOREIGN_TEST_TX_GAS_PRICE=1000000000 | ||
#FOREIGN_TEST_TX_GAS_PRICE=1000000000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,38 @@ | ||
FROM node:10 | ||
FROM node:10 as contracts | ||
|
||
WORKDIR /mono | ||
|
||
COPY contracts/package.json contracts/package-lock.json ./contracts/ | ||
|
||
WORKDIR /mono/contracts | ||
RUN npm install --only=prod | ||
|
||
COPY ./contracts/truffle-config.js ./ | ||
COPY ./contracts/contracts ./contracts | ||
RUN npm run compile | ||
|
||
FROM node:14 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y build-essential | ||
RUN apt-get install -y libc6-dev | ||
RUN apt-get install -y libc6-dev-i386 | ||
RUN apt-get install -y wget | ||
RUN apt-get clean | ||
RUN git config --global url.https://github.com/.insteadOf git://github.com/ | ||
|
||
WORKDIR /mono | ||
COPY package.json . | ||
COPY contracts/package.json ./contracts/ | ||
COPY --from=contracts /mono/contracts/build ./contracts/build | ||
|
||
COPY commons/package.json ./commons/ | ||
COPY oracle/package.json ./oracle/ | ||
COPY yarn.lock . | ||
RUN yarn install --production --frozen-lockfile | ||
|
||
COPY ./contracts ./contracts | ||
RUN yarn run compile:contracts | ||
RUN mv ./contracts/build ./ && rm -rf ./contracts/* ./contracts/.[!.]* && mv ./build ./contracts/ | ||
|
||
COPY yarn.lock . | ||
RUN cd oracle && yarn remove web3 web3-utils && cd .. | ||
RUN NOYARNPOSTINSTALL=1 yarn install --frozen-lockfile --production | ||
RUN cd commons && yarn add [email protected] && cd .. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm going to try the point 1 but for 2. since we are working on 2 different There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A good approach here might be something like
(?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
RUN cd oracle && yarn add [email protected] [email protected] && cd .. | ||
COPY ./commons ./commons | ||
|
||
COPY ./oracle ./oracle | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing end-of-line :)
Same in (oracle/.env.example)