Skip to content

Commit

Permalink
support namada v0.41.0 (#32)
Browse files Browse the repository at this point in the history
support hermes v1.9.0-namada-beta14-rc
build images on github
  • Loading branch information
0x4r45h authored Jul 26, 2024
1 parent c120780 commit 43eb110
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 14 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/publish-images.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
with:
services: 'hermes'
6 changes: 3 additions & 3 deletions config/genesis-chain-b/parameters.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions config/genesis/parameters.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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

Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 43eb110

Please sign in to comment.