Skip to content

Commit

Permalink
Install wasmd and download contracts (#8)
Browse files Browse the repository at this point in the history
* install wasmd and download contracts

* fix multistage

* save artifact

* fix artifact

* as local

* unneeded FROM
  • Loading branch information
yito88 authored Nov 14, 2024
1 parent 33cfe4c commit c8d0036
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
VERSION 0.8

wasmd:
FROM cosmwasm/wasmd:v0.52.0
SAVE ARTIFACT /usr/bin/wasmd AS LOCAL wasmd

namada:
FROM rust:1.81.0-bookworm

Expand All @@ -9,6 +13,8 @@ namada:
ARG nightly_toolchain=nightly-2024-09-08
ARG rocksdb_version=8.10.0
ARG gaia_version=19.1.0
ARG cw721_version=0.18.0
ARG ics721_version=0.1.13
ARG cometbft_version=0.37.11
ARG wasm_opt_version=119

Expand Down Expand Up @@ -80,6 +86,14 @@ namada:
RUN mv gaiad /usr/local/bin
RUN chmod +x /usr/local/bin/gaiad

# install wasmd
COPY +wasmd/wasmd /usr/local/bin/wasmd
RUN chmod +x /usr/local/bin/wasmd

# download cosmwasm contracts
RUN curl -LO https://github.com/public-awesome/cw-nfts/releases/download/v${cw721_version}/cw721_base.wasm
RUN curl -LO https://github.com/public-awesome/cw-ics721/releases/download/v${ics721_version}/ics721_base.wasm

# download cometbft
RUN curl -o cometbft.tar.gz -LO https://github.com/cometbft/cometbft/releases/download/v${cometbft_version}/cometbft_${cometbft_version}_linux_amd64.tar.gz
RUN tar -xvzf cometbft.tar.gz
Expand Down Expand Up @@ -125,4 +139,4 @@ wasm:
RUN mv wasm-opt /usr/local/bin
RUN chmod +x /usr/local/bin/wasm-opt

SAVE IMAGE --push ghcr.io/heliaxdev/namada-ci:wasm-latest ghcr.io/heliaxdev/namada-ci:wasm-main
SAVE IMAGE --push ghcr.io/heliaxdev/namada-ci:wasm-latest ghcr.io/heliaxdev/namada-ci:wasm-main

0 comments on commit c8d0036

Please sign in to comment.