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