From fd3befc5b8ff0aa20d7117bfe101b41c2bc4efc4 Mon Sep 17 00:00:00 2001 From: Willem Olding Date: Tue, 19 Mar 2024 18:06:14 +1100 Subject: [PATCH 1/3] adds cargo chef to docker build so depedencies arent rebuild every time --- rust/Dockerfile | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/rust/Dockerfile b/rust/Dockerfile index ef9693b..adfe81b 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -1,10 +1,10 @@ # syntax=docker.io/docker/dockerfile:1 -FROM ubuntu:22.04 as builder +FROM ubuntu:22.04 as base ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH \ - RUST_VERSION=1.72.0 + RUST_VERSION=1.76.0 RUN < Date: Wed, 20 Mar 2024 22:13:17 +1100 Subject: [PATCH 2/3] fix typo --- rust/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/Dockerfile b/rust/Dockerfile index adfe81b..7042401 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -40,7 +40,7 @@ RUN rustup target add riscv64gc-unknown-linux-gnu RUN cargo install cargo-chef WORKDIR /opt/cartesi/dapp -### the planner helps cache depdenency builds +### the planner helps cache dependency builds FROM base AS planner COPY . . From 14182d1651b0bc48d1739ec57c65d23488563517 Mon Sep 17 00:00:00 2001 From: Willem Olding Date: Fri, 22 Mar 2024 10:10:01 +1100 Subject: [PATCH 3/3] update cartesi tools install to be more consistent with other templaet dockerfiles --- rust/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rust/Dockerfile b/rust/Dockerfile index 7042401..0ee116e 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -62,16 +62,15 @@ LABEL io.sunodo.sdk_version=0.2.0 LABEL io.cartesi.rollups.ram_size=128Mi ARG MACHINE_EMULATOR_TOOLS_VERSION=0.12.0 +ADD https://github.com/cartesi/machine-emulator-tools/releases/download/v${MACHINE_EMULATOR_TOOLS_VERSION}/machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb / +RUN dpkg -i /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb \ + && rm /machine-emulator-tools-v${MACHINE_EMULATOR_TOOLS_VERSION}.deb RUN <