#Let me just clone the repo and create it
1 messages ยท Page 1 of 1 (latest)
Had to jump to a few other things, but got it working. Cleaning up a few things in the dockerfile.
โ migrate-masp-events git:(main) โ docker run docker.io/library/migrate-masp-events
Usage of ./migrate-masp-events:
./migrate-masp-events last-state print last block state in the blockstore db of cometbft
./migrate-masp-events migrate migrate old masp events (<= namada v1.1.5) in the state db of cometbft
./migrate-masp-events print-blocks print all data in the blockstore db of cometbft
./migrate-masp-events print-events print all end blocks events in the state db of cometbft
FROM debian:bullseye-slim as builder
RUN apt-get update && apt-get install -y \
curl \
git \
build-essential \
gcc-multilib \
protobuf-compiler \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN curl -LO https://golang.org/dl/go1.22.0.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz && \
rm go1.22.0.linux-amd64.tar.gz
ENV PATH="/usr/local/go/bin:$PATH"
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:$PATH"
WORKDIR /app
COPY . .
RUN make CGO_LDFLAGS="-lm -ldl"
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /root/
COPY --from=builder /app/migrate-masp-events .
ENTRYPOINT ["./migrate-masp-events"]