diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml index 4563687d..15e71406 100644 --- a/.github/workflows/publish-docker-image.yml +++ b/.github/workflows/publish-docker-image.yml @@ -7,6 +7,11 @@ on: description: 'Docker tag' required: true type: string + baseImage: + description: 'Base image' + required: true + default: 'wavesplatform/wavesnode:1.5.7' + type: string env: IMAGE_NAME: ghcr.io/${{ github.repository }} @@ -50,6 +55,7 @@ jobs: platforms: linux/amd64,linux/arm64 push: true pull: true + build-args: baseImage=${{ inputs.baseImage }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha diff --git a/docker/Dockerfile b/docker/Dockerfile index 2e928d1d..d62a201a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,3 +1,4 @@ -FROM wavesplatform/wavesnode:1.5.7 +ARG baseImage=wavesplatform/wavesnode:1.5.7 +FROM $baseImage COPY target /tmp/ RUN tar zxvf /tmp/consensus-client.tgz -C $WAVES_INSTALL_PATH --strip-components=1 diff --git a/docker/docker-compose-geth.yml b/docker/docker-compose-geth.yml index f74b3a74..767ddf80 100644 --- a/docker/docker-compose-geth.yml +++ b/docker/docker-compose-geth.yml @@ -1,17 +1,8 @@ services: - geth-init: - extends: - file: ./services/geth.yml - service: geth-init - geth: extends: file: ./services/geth.yml service: geth - depends_on: - geth-init: - condition: service_completed_successfully - waves-node: extends: file: ./services/waves-node.yml diff --git a/docker/genesis-testnet.json b/docker/genesis-testnet.json index 5df32716..7ecdc03f 100644 --- a/docker/genesis-testnet.json +++ b/docker/genesis-testnet.json @@ -33,11 +33,11 @@ "difficulty": "0x0", "excessBlobGas": null, "extraData": "0x", - "gasLimit": "0x1000000", + "gasLimit": "0xe4e1c0", "gasUsed": "0x0", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "nonce": "0x0", "number": "0x0", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "timestamp": "0x66E7E580" + "timestamp": "0x66eac0c0" } diff --git a/docker/services/besu.yml b/docker/services/besu.yml index 04fb24c2..e9444a8c 100644 --- a/docker/services/besu.yml +++ b/docker/services/besu.yml @@ -21,6 +21,7 @@ services: - --genesis-file=/etc/besu/genesis.json - --data-storage-format=BONSAI - --network-id=${NETWORK_ID} + - --target-gas-limit=15000000 volumes: - ../genesis-${NETWORK}.json:/etc/besu/genesis.json - ../data/secrets:/etc/secrets:ro diff --git a/docker/services/geth.yml b/docker/services/geth.yml index 3c7b7655..d31ec651 100644 --- a/docker/services/geth.yml +++ b/docker/services/geth.yml @@ -1,12 +1,4 @@ services: - geth-init: - container_name: geth-init - image: ethereum/client-go:stable - entrypoint: /tmp/init-geth.sh - volumes: - - ../genesis-${NETWORK}.json:/tmp/genesis.json - - ../data/geth:/root/.ethereum - - ../init-geth.sh:/tmp/init-geth.sh geth: container_name: geth image: ethereum/client-go:stable @@ -27,9 +19,10 @@ services: - --authrpc.addr=0.0.0.0 - --authrpc.vhosts=* - --discovery.dns=enrtree://AIRIZFFZSCSIVHXTKA44WYZQJMR75FLTGWJ5TUNEW5IP7QKZDLBRK@${NETWORK}-nodes.unit0.dev - - --networkid=88817 + - --networkid=${NETWORK_ID} - --authrpc.jwtsecret=/etc/secrets/jwtsecret - --nodekey=/etc/secrets/p2p-key + - --miner.gaslimit=15000000 logging: driver: local options: diff --git a/local-network/configs/ec-common/jwt-token-generate.sh b/local-network/configs/ec-common/jwt-token-generate.sh index 86cfdd84..d19eac3d 100755 --- a/local-network/configs/ec-common/jwt-token-generate.sh +++ b/local-network/configs/ec-common/jwt-token-generate.sh @@ -16,6 +16,7 @@ jwt_header=$(base64_url_encode '{"alg":"HS256","typ":"JWT"}') iat=$(date +%s) # Seconds since 1970-01-01 payload=$(base64_url_encode "{\"iat\":${iat}}") -hmac_signature=$(echo -n "${jwt_header}.${payload}" | openssl dgst -sha256 -mac HMAC -macopt hexkey:"${hexsecret}" -binary | base64_url_encode) +hmac_signature_bin=$(echo -n "${jwt_header}.${payload}" | openssl dgst -sha256 -mac HMAC -macopt hexkey:"${hexsecret}" -binary) +hmac_signature=$(base64_url_encode "$hmac_signature_bin") echo -n "${jwt_header}.${payload}.${hmac_signature}"