Skip to content

Commit

Permalink
Upgrade to leap version (#58)
Browse files Browse the repository at this point in the history
* upgrade to v0.6.0 leap version

* fixed healcheck
  • Loading branch information
quocle108 committed Apr 12, 2023
1 parent d7223f3 commit 311829e
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
yarn-error.log
logs
dist
.vscode
.vscode
.DS_Store
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,8 @@ For issues not covered in the documentation, please jump into our channel and we

This code is provided as is, under [MIT Licence](LICENCE).

## Todo

- Support ARM binaries for leap version


6 changes: 3 additions & 3 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ copy_snapshots:
./copy_snapshot.sh

build:
# docker build -f Dockerfile -t genereos/qtest:v1.1.4 . --platform linux/amd64
# docker build -f Dockerfile -t genereos/qtest:arm64-v1.1.4 . --platform linux/arm64
# docker build -f Dockerfile -t genereos/qtest:v1.2.0 . --platform linux/amd64
# docker build -f Dockerfile -t genereos/qtest:arm64-v1.2.0 . --platform linux/arm64
# docker buildx create --use
docker buildx build -f Dockerfile -t genereos/qtest:v1.1.4 --platform linux/amd64,linux/arm64 . --push
docker buildx build -f Dockerfile -t genereos/qtest:v1.2.0 --platform linux/amd64,linux/arm64 . --push

start: stop
docker run --name qtest --env SYSTEM_TOKEN_SYMBOL="TLOS" -d -p 8888:8888 genereos/qtest:v1.1.4
Expand Down
Binary file modified docker/node/logs/EOS/data/snapshots/snapshot.bin
Binary file not shown.
Binary file modified docker/node/logs/TLOS/data/snapshots/snapshot.bin
Binary file not shown.
Binary file modified docker/node/logs/WAX/data/snapshots/snapshot.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion docker/scripts/health_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

curl -f --request POST \
--url http://127.0.0.1:8888/v1/chain/get_block \
--data '{"block_num_or_id":"17"}'
--data '{"block_num_or_id":"18"}'

if [[ $? -eq 0 ]]
then
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qtest-js",
"version": "0.5.1",
"version": "0.6.0",
"description": "eosio testing library",
"main": "dist/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/dockerClient.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { execSync } from "child_process";
const dockerImageName = "genereos/qtest:v1.1.4";
const dockerImageName = "genereos/qtest:v1.2.0";

function execute(command, ignoreFail = false) {
try {
Expand Down

0 comments on commit 311829e

Please sign in to comment.