Skip to content

Commit

Permalink
CLI: update docker image
Browse files Browse the repository at this point in the history
the previous one ships a solana binary that doesn't support priority fees
  • Loading branch information
kcsongor committed Aug 30, 2024
1 parent 66d8fde commit fc0f34f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile.cli
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# that the solana installer script just works, but you would be wrong. It seems
# to have been broken recently since the migration to the anza url.
# The old installer url returns a 403. So we instead rely on solana binaries cached on docker hub. Everything is fine.
FROM backpackapp/build:v0.29.0@sha256:9aee169b2d8b89b4a4243419ae35c176773136e78d751b3e439eff692c9c1293 as base
FROM backpackapp/build:v0.30.1@sha256:c160fe32cba7c463981110b2aac2924de4833c06a0af6473a830ead880c4ef3b as base

RUN apt update

Expand All @@ -19,6 +19,12 @@ RUN bash -ci "foundryup"

RUN apt install -y jq

FROM base as base-solana

RUN cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
RUN avm install 0.29.0
RUN avm use 0.29.0

FROM base as cli-remote
# NOTE: when invoking the installer outside of the source tree, it clones the
# repo and installs that way.
Expand All @@ -27,7 +33,7 @@ COPY cli/install.sh cli/install.sh
RUN bash -ci "./cli/install.sh"
RUN bash -ci "which ntt"

FROM base as cli-local
FROM base-solana as cli-local
# NOTE: when invoking the installer inside of the source tree, it installs from
# the local source tree.
# This build stage tests that path.
Expand Down

0 comments on commit fc0f34f

Please sign in to comment.