diff --git a/Dockerfile b/Dockerfile index f1acb96e7d..efc36589e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -204,6 +204,8 @@ RUN apt-get update && apt-get install -y unzip wget curl WORKDIR /workspace/machines # Download WAVM machines COPY ./scripts/download-machine.sh . +COPY ./scripts/download-machine-celestia.sh . +chmod +x ./download-machine.sh ./download-machine-celestia.sh #RUN ./download-machine.sh consensus-v1-rc1 0xbb9d58e9527566138b682f3a207c0976d5359837f6e330f4017434cca983ff41 #RUN ./download-machine.sh consensus-v2.1 0x9d68e40c47e3b87a8a7e6368cc52915720a6484bb2f47ceabad7e573e3a11232 #RUN ./download-machine.sh consensus-v3 0x53c288a0ca7100c0f2db8ab19508763a51c7fd1be125d376d940a65378acaee7 @@ -225,7 +227,8 @@ COPY ./scripts/download-machine.sh . RUN ./download-machine.sh consensus-v30 0xb0de9cb89e4d944ae6023a3b62276e54804c242fd8c4c2d8e6cc4450f5fa8b1b && true RUN ./download-machine.sh consensus-v31 0x260f5fa5c3176a856893642e149cf128b5a8de9f828afec8d11184415dd8dc69 RUN ./download-machine.sh consensus-v32 0x184884e1eb9fefdc158f6c8ac912bb183bf3cf83f0090317e0bc4ac5860baa39 -RUN ./download-machine.sh v3.3.2 0xaf1dbdfceb871c00bfbb1675983133df04f0ed04e89647812513c091e3a982b3 celestiaorg +RUN ./download-machine-celestia.sh v3.2.1-rc.1 0xe81f986823a85105c5fd91bb53b4493d38c0c26652d23f76a7405ac889908287 celestiaorg +RUN ./download-machine-celestia.sh v3.3.2 0xaf1dbdfceb871c00bfbb1675983133df04f0ed04e89647812513c091e3a982b3 celestiaorg FROM golang:1.23.1-bookworm AS node-builder WORKDIR /workspace diff --git a/scripts/download-machine-celestia.sh b/scripts/download-machine-celestia.sh new file mode 100644 index 0000000000..55feb2159e --- /dev/null +++ b/scripts/download-machine-celestia.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +set -e + +mkdir "$2" +ln -sfT "$2" latest +cd "$2" +echo "$2" > module-root.txt +url_base="https://github.com/celestiaorg/nitro/releases/download/$1" +wget "$url_base/machine.wavm.br" + +status_code="$(curl -LI "$url_base/replay.wasm" -so /dev/null -w '%{http_code}')" +if [ "$status_code" -ne 404 ]; then + wget "$url_base/replay.wasm" +fi