Skip to content

Commit

Permalink
Build Akash from binary ZIP archive
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Sep 26, 2023
1 parent 2e42dfa commit fcd10bb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,21 @@ ARG BINARY_URL
RUN curl -Lo /bin/$PROJECT_BIN $BINARY_URL
RUN chmod +x /bin/$PROJECT_BIN

#
# Optional image to install from binary zip
#
FROM build_base AS binary_zip

ARG BINARY_URL
ARG BINARY_ZIP_PATH

RUN curl -Lo /bin/$PROJECT_BIN.zip $BINARY_URL
RUN unzip /bin/$PROJECT_BIN.zip -d /bin && rm /bin/$PROJECT_BIN.zip
RUN if [ -n "$BINARY_ZIP_PATH" ]; then \
mv /bin/${BINARY_ZIP_PATH} /bin; \
fi
RUN chmod +x /bin/$PROJECT_BIN

#
# Custom image for injective
#
Expand Down
5 changes: 2 additions & 3 deletions akash/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ services:
PROJECT: akash
VERSION: v0.26.1
REPOSITORY: https://github.com/akash-network/node
GOLANG_VERSION: 1.21-bullseye
DEBIAN_VERSION: bullseye
INSTALL_PACKAGES: jq
BUILD_IMAGE: binary_zip
BINARY_URL: https://github.com/akash-network/node/releases/download/v0.26.1/akash_linux_amd64.zip?checksum=sha256:5a2b406e1df0144ef23a184837c5f6bf5e704271ecb94f94d7f705a4f90f2580
ports:
- '26656:26656'
- '26657:26657'
Expand Down

0 comments on commit fcd10bb

Please sign in to comment.