Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Adjusting CI/CD to use new bios/boot systems #829

Merged
merged 2 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/eosjs-ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
### Current Version: v0.2.7
### Current Version: v0.2.8
### Test:
#### docker build --tag eosjs-ci:test ./.github/eosjs-ci
#### docker run --publish 8888:8888 eosjs-ci:test
### Deploy:
#### docker build --tag eosio/eosjs-ci:v0.2.7 ./.github/eosjs-ci
#### docker push eosio/eosjs-ci:v0.2.7
#### docker build --tag eosio/eosjs-ci:v0.2.8 ./.github/eosjs-ci
#### docker push eosio/eosjs-ci:v0.2.8

FROM ubuntu:18.04
ENTRYPOINT ["nodeos", "--data-dir", "/root/.local/share", "-e", "-p", "eosio", "--replay-blockchain", "--plugin", "eosio::producer_plugin", "--plugin", "eosio::chain_api_plugin", "--plugin", "eosio::http_plugin", "--http-server-address=0.0.0.0:8888", "--access-control-allow-origin=*", "--contracts-console", "--http-validate-host=false", "--verbose-http-errors", "--max-transaction-time=100"]
Expand Down Expand Up @@ -67,6 +67,11 @@ RUN curl -LO https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.
&& cd /root \
&& rm -rf boost_1_72_0.tar.bz2 boost_1_72_0

### libpq and libpqxx
RUN echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& curl -sL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update && apt-get -y install libpq-dev

### eos
RUN git clone https://github.com/EOSIO/eos.git \
&& cd eos \
Expand Down
40 changes: 14 additions & 26 deletions .github/eosjs-ci/scripts/deploy_contracts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,11 @@ cleos create account cfhello cfactor $CFACTOR_PUBLIC_KEY
post_preactivate

sleep 1s
setabi eosio $CONTRACTS_DIR/eosio.bios-v1.8.3/eosio.bios.abi
setcode eosio $CONTRACTS_DIR/eosio.bios-v1.8.3/eosio.bios.wasm
setabi eosio $CONTRACTS_DIR/eosio.boot/eosio.boot.abi
setcode eosio $CONTRACTS_DIR/eosio.boot/eosio.boot.wasm

sleep 1s
activate_feature "299dcb6af692324b899b39f16d5a530a33062804e41f09dc97e9f156b4476707"

sleep 1s
setabi eosio $CONTRACTS_DIR/eosio.bios/eosio.bios.abi
setcode eosio $CONTRACTS_DIR/eosio.bios/eosio.bios.wasm

sleep 1s
activate_feature "825ee6288fb1373eab1b5187ec2f04f6eacb39cb3a97f356a07c91622dd61d16"
activate_feature "c3a6138c5061cf291310887c0b5c71fcaffeab90d5deb50d3b9e687cead45071"
activate_feature "4e7bf348da00a945489b2a681749eb56f5de00b900014e137ddae39f48f69d67"
Expand All @@ -188,34 +182,28 @@ activate_feature "bf61537fd21c61a60e542a5d66c3f6a78da0589336868307f94a82bccea84e
activate_feature "5443fcf88330c586bc0e5f3dee10e7f63c76c00249c87fe4fbf7f38c082006b4"

sleep 1s
cleos set abi eosio $CONTRACTS_DIR/kv_bios/kv_bios.abi -p eosio@active
cleos set code eosio $CONTRACTS_DIR/kv_bios/kv_bios.wasm -p eosio@active

sleep 1s
cleos push action eosio ramkvlimits "[1024, 4096, 1024]" -p eosio@active

sleep 1s
setabi eosio $CONTRACTS_DIR/ret_bios/ret_bios.abi
setcode eosio $CONTRACTS_DIR/ret_bios/ret_bios.wasm
setabi eosio $CONTRACTS_DIR/eosio.bios/eosio.bios.abi
setcode eosio $CONTRACTS_DIR/eosio.bios/eosio.bios.wasm

sleep 1s
cleos push action eosio retmaxlim "[]" -p eosio@active
cleos push action eosio setkvparams '[{"max_key_size":1024, "max_value_size":4096, "max_iterators":1024}]' -p eosio@active
cleos push action eosio setpparams '["01110000400100000000"]' -p eosio@active

sleep 1s
cleos set abi cfhello $CONTRACTS_DIR/cfhello/cfhello.abi -p cfhello@active -p eosio@active
cleos set code cfhello $CONTRACTS_DIR/cfhello/cfhello.wasm -p cfhello@active -p eosio@active
setabi cfhello $CONTRACTS_DIR/cfhello/cfhello.abi
setcode cfhello $CONTRACTS_DIR/cfhello/cfhello.wasm

sleep 1s
cleos set abi todo $CONTRACTS_DIR/kv_todo/kv_todo.abi -p todo@active -p eosio@active
cleos set code todo $CONTRACTS_DIR/kv_todo/kv_todo.wasm -p todo@active -p eosio@active
setabi todo $CONTRACTS_DIR/kv_todo/kv_todo.abi
setcode todo $CONTRACTS_DIR/kv_todo/kv_todo.wasm

sleep 1s
cleos set abi returnvalue $CONTRACTS_DIR/action_results/action_results.abi -p returnvalue@active -p eosio@active
cleos set code returnvalue $CONTRACTS_DIR/action_results/action_results.wasm -p returnvalue@active -p eosio@active
setabi returnvalue $CONTRACTS_DIR/action_return_value/action_return_value.abi
setcode returnvalue $CONTRACTS_DIR/action_return_value/action_return_value.wasm

sleep 1s
cleos set abi eosio.token $CONTRACTS_DIR/eosio.token/eosio.token.abi -p eosio.token@active -p eosio@active
cleos set code eosio.token $CONTRACTS_DIR/eosio.token/eosio.token.wasm -p eosio.token@active -p eosio@active
setabi eosio.token $CONTRACTS_DIR/eosio.token/eosio.token.abi
setcode eosio.token $CONTRACTS_DIR/eosio.token/eosio.token.wasm

sleep 1s
cleos push action eosio.token create '["bob", "10000000000.0000 SYS"]' -p eosio.token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
git push origin ${GITHUB_REF#refs/*/}
services:
nodeos:
image: eosio/eosjs-ci:v0.2.7
image: eosio/eosjs-ci:v0.2.8

ports:
- 8888:8888
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:

services:
nodeos:
image: eosio/eosjs-ci:v0.2.7
image: eosio/eosjs-ci:v0.2.8

ports:
- 8888:8888
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

services:
nodeos:
image: eosio/eosjs-ci:v0.2.7
image: eosio/eosjs-ci:v0.2.8

ports:
- 8888:8888
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:

services:
nodeos:
image: eosio/eosjs-ci:v0.2.7
image: eosio/eosjs-ci:v0.2.8

ports:
- 8888:8888
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"devDependencies": {
"@blockone/eslint-config-blockone": "^3.0.0",
"@types/elliptic": "^6.4.12",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.9",
"@types/jest": "^26.0.17",
"@types/node": "^14.14.10",
"@types/pako": "^1.0.1",
"cypress": "^4.12.1",
"eosjs-ecc": "^4.0.7",
Expand Down
Loading