diff --git a/.gitignore b/.gitignore index 5fa3df3d6..ebb2d86c2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ release/ build/ cache/ -/seid +/seid-* /libwasmvm.x86_64.so # Local .terraform directories diff --git a/Dockerfile.sf b/Dockerfile.sf index f879fb5c1..e22875845 100644 --- a/Dockerfile.sf +++ b/Dockerfile.sf @@ -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 \ @@ -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