Skip to content

Commit

Permalink
Improved Docker to pull libwasmvm dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
maoueh committed Jun 19, 2024
1 parent f7dee2a commit 60c3ad3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ release/
build/
cache/

/seid
/seid-*
/libwasmvm.x86_64.so

# Local .terraform directories
Expand Down
16 changes: 12 additions & 4 deletions Dockerfile.sf
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ ENV PATH="/app:${PATH}"

FROM base as fireeth_download

ARG FIREETH="v2.6.1"
ARG FIREETH="v2.6.2"

# Download and extract the binary file
RUN curl -LO https://github.com/streamingfast/firehose-ethereum/releases/download/v${FIREETH}/firehose-ethereum_linux_x86_64.tar.gz \
RUN curl -LO https://github.com/streamingfast/firehose-ethereum/releases/download/${FIREETH}/firehose-ethereum_linux_x86_64.tar.gz \
&& tar -xzf firehose-ethereum_linux_x86_64.tar.gz \
&& rm firehose-ethereum_linux_x86_64.tar.gz

FROM base as libwasmvm_download

ARG WASMVM="v1.5.2"

RUN wget -O /lib/libwasmvm.x86_64.so https://github.com/CosmWasm/wasmvm/releases/download/${WASMVM}/libwasmvm.x86_64.so

FROM base as base_with_gcloud

RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
Expand All @@ -29,9 +35,11 @@ RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.

FROM base_with_gcloud

ARG SEID_BIN="seid"

COPY --from=fireeth_download /app/fireeth /app/fireeth
COPY ./seid /app/seid
COPY ./libwasmvm.x86_64.so /lib/libwasmvm.x86_64.so
COPY --from=libwasmvm_download /lib/libwasmvm.x86_64.so /lib/libwasmvm.x86_64.so
COPY ./${SEID_BIN} /app/seid

RUN chmod +x /app/fireeth

0 comments on commit 60c3ad3

Please sign in to comment.