From da888a3b9b4a0040c4d9b03919c08084d3f5bad5 Mon Sep 17 00:00:00 2001 From: Jaroslaw Konik Date: Thu, 14 May 2026 16:54:17 +0200 Subject: [PATCH] add rust-esp32 env --- agent | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/agent b/agent index d4d27ca..facf903 100755 --- a/agent +++ b/agent @@ -68,8 +68,16 @@ case "$env" in env_layer='RUN curl --proto '"'"'=https'"'"' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}"' ;; + rust-esp32) + env_suffix="-rust-esp32" + env_layer='RUN curl --proto '"'"'=https'"'"' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +ENV PATH="/root/.cargo/bin:${PATH}" +RUN cargo install espup && espup install +RUN printf '"'"'#!/bin/bash\n. /root/export-esp.sh\nexec "$@"\n'"'"' > /entrypoint.sh && chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"]' + ;; *) - echo "Unknown env '$env'. Supported: rust" >&2 + echo "Unknown env '$env'. Supported: rust, rust-esp32" >&2 exit 1 ;; esac @@ -78,7 +86,7 @@ image_name="${image_name}${env_suffix}" if $rebuild || ! docker image inspect "$image_name" &>/dev/null; then echo "Building $image_name..." - dockerfile="FROM node:24-bullseye + dockerfile="FROM node:24-bookworm ${env_layer} RUN npm install -g $npm_pkg WORKDIR /workspace