mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-03 23:03:10 +00:00
feat: optimize r0vm installation for sequencer docker image for x86_64 platform
This commit is contained in:
parent
ea7beaaaef
commit
9bb4d95f0b
@ -14,13 +14,24 @@ RUN apt-get update && apt-get install -y \
|
|||||||
git \
|
git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install r0vm (manual build as it's portable across different host platforms)
|
# Install r0vm
|
||||||
RUN git clone --depth 1 --branch release-3.0 https://github.com/risc0/risc0.git
|
# Use quick install for x86-64 (risczero provides binaries only for this linux platform)
|
||||||
RUN git clone --depth 1 --branch r0.1.91.1 https://github.com/risc0/rust.git
|
# Manual build for other platforms (including arm64 Linux)
|
||||||
WORKDIR /risc0
|
RUN ARCH=$(uname -m); \
|
||||||
RUN cargo install --path rzup
|
if [ "$ARCH" = "x86_64" ]; then \
|
||||||
RUN rzup build --path /rust rust --verbose
|
echo "Using quick install for $ARCH"; \
|
||||||
RUN cargo install --path risc0/cargo-risczero
|
curl -L https://risczero.com/install | bash; \
|
||||||
|
export PATH="/root/.cargo/bin:/root/.risc0/bin:${PATH}"; \
|
||||||
|
rzup install; \
|
||||||
|
else \
|
||||||
|
echo "Using manual build for $ARCH"; \
|
||||||
|
git clone --depth 1 --branch release-3.0 https://github.com/risc0/risc0.git; \
|
||||||
|
git clone --depth 1 --branch r0.1.91.1 https://github.com/risc0/rust.git; \
|
||||||
|
cd /risc0; \
|
||||||
|
cargo install --path rzup; \
|
||||||
|
rzup build --path /rust rust --verbose; \
|
||||||
|
cargo install --path risc0/cargo-risczero; \
|
||||||
|
fi
|
||||||
ENV PATH="/root/.cargo/bin:/root/.risc0/bin:${PATH}"
|
ENV PATH="/root/.cargo/bin:/root/.risc0/bin:${PATH}"
|
||||||
RUN cp "$(which r0vm)" /usr/local/bin/r0vm
|
RUN cp "$(which r0vm)" /usr/local/bin/r0vm
|
||||||
RUN test -x /usr/local/bin/r0vm
|
RUN test -x /usr/local/bin/r0vm
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user