You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hard fork procedure and state migration are tricky and problematic for docker setups. I created this issue to discuss potential workarounds with the team and pilots using docker.
Issues
the namada binary inside docker image ghcr.io/anoma/namada:namada-v0.31.10 is on version 0.31.9 instead of 0.31.10
you can't download and run pre-built binaries https://github.com/anoma/namada/releases/tag/v0.31.10 inside the previous docker containers because it requires a higher version of glibc GLIBC_2.33 but the version on bullseye image is GLIBC_2.31
Workarounds
I made an intermediate image just for the migration step. something like this :
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y \
curl \
nano \
jq \
dnsutils \
wget \
perl \
iputils-ping \
&& apt-get clean
RUN useradd namada
RUN mkdir /hardfork && chown namada:namada /hardfork
USER namada
COPY hardfork /hardfork
WORKDIR /hardfork
The hardfork directory has the following structure (download the files manually before building the docker image)
wait until node reaches the target block and suspends, then stop and remove the container
MAKE A BACKUP from volume/bindmount somewhere else
run a new container with hardfork image we just created earlier, with Exact mount paths. exec into it.
inside the container cd into /hardfork path. now if you mounted the namada data dir correctly, you have everything needed to generate migrations.json file
wait for team to announce the shasum of the file, if everything is correct copy it into the volumes directory before leaving the intermediate container
from this step you can use the official docker image ghcr.io/anoma/namada:namada-v0.32.1 for your validators container. make sure before running it with the default command, change its entry point and exec into it, and follow the instructions for the rest of the migration
Please share your thoughts. did I miss anything? is there a better and cleaner approach?
The text was updated successfully, but these errors were encountered:
The hard fork procedure and state migration are tricky and problematic for docker setups. I created this issue to discuss potential workarounds with the team and pilots using docker.
Issues
ghcr.io/anoma/namada:namada-v0.31.10
is on version0.31.9
instead of0.31.10
GLIBC_2.33
but the version on bullseye image isGLIBC_2.31
Workarounds
I made an intermediate image just for the migration step. something like this :
The hardfork directory has the following structure (download the files manually before building the docker image)
build and tag this image. i call it
hardfork
Steps
/hardfork
path. now if you mounted the namada data dir correctly, you have everything needed to generatemigrations.json
fileghcr.io/anoma/namada:namada-v0.32.1
for your validators container. make sure before running it with the default command, change its entry point and exec into it, and follow the instructions for the rest of the migrationPlease share your thoughts. did I miss anything? is there a better and cleaner approach?
The text was updated successfully, but these errors were encountered: