-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: try to clean up all and only then return the error * chore: add errgroup to clear resources and new mount path to set proposasl * chore: add upgrade e2e from current branch * feat: add query proposals to container CLI * feat: add tx gov submit prop in container CLI * feat: add query for tx debug * fix: set min deposit to ubbn token * fix: set gov prop time in genstate gov * chore: add vote to gov prop * test: upgrade fails due to BINARY UPDATED BEFORE TRIGGER * chore: mod tidy * feat: add directives to build babylon from specific version and tag as before upgrade * chore: add comment for TODO rmv upgrade for mainnet * chore: add clean docker directive * chore: add fetch for commit hash in babylond docker file versioned * fix: deterministic upgrade * feat: add upgrade and initialization needed for software upgrade prop * chore: removed unecessary secret key at node level * chore: add checker for vanilla upgrade * chore: add status command * chore: wait to purge resources than remove network * feat: add bank multisend * fix: use multisend to avoid sequence error * fix: usage and command bank multisend * fix: fp babylon address * fix: no error required * fix: add typed error that reward gauge was not found for that addr * chore: update error not exactly the same * chore: set linter timeout to 10min * chore: cleanup * fix: used parameter of voting period to update gov genesis * chore: rename from NewSoftwareUpgradeTest to NewSoftwareUpgradeConfigurer * chore: add check for applied plan by verifying the height in which it was executed * chore: add upgrade path as parameter in configurer * fix: set type of expected height to match equal value * chore: address PR comments
- Loading branch information
1 parent
679b49a
commit 3428cf1
Showing
25 changed files
with
775 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
FROM golang:1.21 as build-env | ||
|
||
ARG E2E_SCRIPT_NAME | ||
|
||
# TARGETPLATFORM should be one of linux/amd64 or linux/arm64. | ||
ARG TARGETPLATFORM="linux/amd64" | ||
|
||
# Install cli tools for building and final image | ||
RUN apt-get update && apt-get install -y make git bash gcc curl jq | ||
|
||
WORKDIR /go/src/github.com/babylonchain/babylon | ||
|
||
# First cache dependencies | ||
COPY go.mod go.sum /go/src/github.com/babylonchain/babylon/ | ||
RUN go mod download | ||
|
||
# Copy everything else | ||
COPY ./ /go/src/github.com/babylonchain/babylon/ | ||
|
||
RUN LEDGER_ENABLED=false LINK_STATICALLY=false E2E_SCRIPT_NAME=${E2E_SCRIPT_NAME} make e2e-build-script | ||
|
||
FROM debian:bookworm-slim AS run | ||
|
||
# Create a user | ||
RUN addgroup --gid 1137 --system babylon && adduser --uid 1137 --gid 1137 --system --home /home/babylon babylon | ||
RUN apt-get update && apt-get install -y bash curl jq wget | ||
|
||
COPY --from=build-env /go/src/github.com/babylonchain/babylon/go.mod /tmp | ||
RUN WASMVM_VERSION=$(grep github.com/CosmWasm/wasmvm /tmp/go.mod | cut -d' ' -f2) && \ | ||
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm.$(uname -m).so \ | ||
-O /lib/libwasmvm.$(uname -m).so && \ | ||
# verify checksum | ||
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/checksums.txt -O /tmp/checksums.txt && \ | ||
sha256sum /lib/libwasmvm.$(uname -m).so | grep $(cat /tmp/checksums.txt | grep libwasmvm.$(uname -m) | cut -d ' ' -f 1) | ||
|
||
# Args only last for a single build stage - renew | ||
ARG E2E_SCRIPT_NAME | ||
|
||
COPY --from=build-env /go/src/github.com/babylonchain/babylon/build/${E2E_SCRIPT_NAME} /bin/${E2E_SCRIPT_NAME} | ||
|
||
# Docker ARGs are not expanded in ENTRYPOINT in the exec mode. At the same time, | ||
# it is impossible to add CMD arguments when running a container in the shell mode. | ||
# As a workaround, we create the entrypoint.sh script to bypass these issues. | ||
RUN echo "#!/bin/bash\n${E2E_SCRIPT_NAME} \"\$@\"" >> entrypoint.sh && chmod +x entrypoint.sh | ||
|
||
ENTRYPOINT ["./entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.