From 43eb1104a070564145b2cfb068d42ff499813f79 Mon Sep 17 00:00:00 2001 From: Arash <0x4r45h@gmail.com> Date: Sat, 27 Jul 2024 00:21:59 +0300 Subject: [PATCH] support namada v0.41.0 (#32) support hermes v1.9.0-namada-beta14-rc build images on github --- .github/workflows/publish-images.yml | 57 ++++++++++++++++++++++++++ config/genesis-chain-b/parameters.toml | 6 +-- config/genesis/parameters.toml | 6 +-- docker-compose.yml | 8 ++-- docker/Dockerfile | 9 ++-- 5 files changed, 72 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/publish-images.yml diff --git a/.github/workflows/publish-images.yml b/.github/workflows/publish-images.yml new file mode 100644 index 0000000..94e4fdc --- /dev/null +++ b/.github/workflows/publish-images.yml @@ -0,0 +1,57 @@ +name: Docker +on: + push: + tags: [ 'v*.*.*' ] +env: + REGISTRY: ghcr.io +jobs: + build-node: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Create .env file + run: touch .env + shell: bash + + - name: Log into registry ${{ env.REGISTRY }} + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Docker Compose Build & Push + uses: 0x4r45h/docker-compose-ci@v0.1.1 + with: + services: 'main' + build-hermes: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Create .env file + run: touch .env + shell: bash + + - name: Log into registry ${{ env.REGISTRY }} + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Docker Compose Build & Push + uses: 0x4r45h/docker-compose-ci@v0.1.1 + with: + services: 'hermes' diff --git a/config/genesis-chain-b/parameters.toml b/config/genesis-chain-b/parameters.toml index 3f83600..69fbbf9 100644 --- a/config/genesis-chain-b/parameters.toml +++ b/config/genesis-chain-b/parameters.toml @@ -6,7 +6,7 @@ is_native_token_transferable = true min_num_of_blocks = 4 # Max payload size, in bytes, for a tx. max_tx_bytes = 1048576 -# Max payload size, in bytes, for a tx batch proposal. +# Max payload size, in bytes, for a block proposal. max_proposal_bytes = 6291456 # vp allowlist vp_allowlist = [] @@ -22,9 +22,9 @@ masp_epoch_multiplier = 2 # Max gas for block max_block_gas = 20000000 # Masp fee payment gas limit -masp_fee_payment_gas_limit = 20000 +masp_fee_payment_gas_limit = 150_000 # Gas scale -gas_scale = 100_000_000 +gas_scale = 10_000_000 # Fee unshielding gas limit fee_unshielding_gas_limit = 20000 diff --git a/config/genesis/parameters.toml b/config/genesis/parameters.toml index ae27c46..afb790d 100644 --- a/config/genesis/parameters.toml +++ b/config/genesis/parameters.toml @@ -6,7 +6,7 @@ is_native_token_transferable = true min_num_of_blocks = 4 # Max payload size, in bytes, for a tx. max_tx_bytes = 1048576 -# Max payload size, in bytes, for a tx batch proposal. +# Max payload size, in bytes, for a block proposal. max_proposal_bytes = 6291456 # vp allowlist vp_allowlist = [] @@ -22,9 +22,9 @@ masp_epoch_multiplier = 2 # Max gas for block max_block_gas = 20000000 # Masp fee payment gas limit -masp_fee_payment_gas_limit = 20000 +masp_fee_payment_gas_limit = 150_000 # Gas scale -gas_scale = 100_000_000 +gas_scale = 10_000_000 # Fee unshielding gas limit fee_unshielding_gas_limit = 20000 diff --git a/docker-compose.yml b/docker-compose.yml index 9932d67..5a64eda 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,9 +4,9 @@ x-namada: &namada-common dockerfile: docker/Dockerfile context: . args: - - NAMADA_TAG=${NAMADA_TAG:-v0.40.0} + - NAMADA_TAG=${NAMADA_TAG:-v0.41.0} - BUILD_WASM=true - image: arashidos/namada:${NAMADA_TAG:-v0.40.0} + image: ghcr.io/emberstake/namada-selfhost/namada:${NAMADA_TAG:-v0.41.0} entrypoint: ["sh", "/docker-entrypoint-scripts.d/start-node.sh"] networks: namada: @@ -77,12 +77,12 @@ services: - namada-chain-b_data:/root/.local/share/namada hermes: - image: arashidos/hermes:${HERMES_TAG:-v1.9.0-namada-beta13-rc2} + image: ghcr.io/emberstake/namada-selfhost/hermes:${HERMES_TAG:-v1.9.0-namada-beta14-rc} build: dockerfile: docker/hermes.Dockerfile context: . args: - - HERMES_TAG=${HERMES_TAG:-v1.9.0-namada-beta13-rc2} + - HERMES_TAG=${HERMES_TAG:-v1.9.0-namada-beta14-rc} hostname: hermes profiles: - hermes diff --git a/docker/Dockerfile b/docker/Dockerfile index 3a17b79..310640b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -27,14 +27,15 @@ RUN git checkout ${NAMADA_TAG} RUN make build-release RUN make build-wasm-scripts -FROM golang:1.18.0 as tendermint-builder +FROM golang:1.19.0 as tendermint-builder WORKDIR /app -RUN git clone -b v0.37.2 --single-branch https://github.com/cometbft/cometbft.git && cd cometbft && make build +RUN git clone https://github.com/cometbft/cometbft.git +WORKDIR cometbft +RUN git checkout v0.37.9 +RUN make build FROM debian:bookworm-slim AS runtime -#ENV NAMADA_BASE_DIR=/.namada -#ENV NAMADA_LOG_COLOR=false RUN apt-get update && apt-get install libcurl4-openssl-dev curl nano jq iproute2 procps python3 python3-pip python3-toml expect -y && apt-get clean