Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .cursor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ ARG RUST_VERSION=1.99.0

FROM rust:${RUST_VERSION}-slim

ARG RUST_VERSION

ENV DEBIAN_FRONTEND=noninteractive \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8
LC_ALL=C.UTF-8 \
CARGO_HOME=/usr/local/cargo \
RUSTUP_HOME=/usr/local/rustup \
PATH=/usr/local/cargo/bin:/usr/local/rustup/toolchains/${RUST_VERSION}-x86_64-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Comment thread
rmems marked this conversation as resolved.
Comment thread
rmems marked this conversation as resolved.

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand All @@ -23,6 +28,15 @@ RUN groupadd --gid 1000 ubuntu \
&& printf 'ubuntu ALL=(ALL) NOPASSWD:ALL\n' > /etc/sudoers.d/ubuntu \
&& chmod 0440 /etc/sudoers.d/ubuntu

RUN printf '%s\n' \
'export CARGO_HOME="/usr/local/cargo"' \
'export RUSTUP_HOME="/usr/local/rustup"' \
"export PATH=\"/usr/local/cargo/bin:/usr/local/rustup/toolchains/${RUST_VERSION}-x86_64-unknown-linux-gnu/bin:\$PATH\"" \
> /etc/profile.d/cargo.sh \
&& chmod 644 /etc/profile.d/cargo.sh \
&& bash -c 'for f in /usr/local/cargo/bin/*; do ln -sf "$f" /usr/local/bin/; done' \
&& chown -R ubuntu:ubuntu /usr/local/cargo /usr/local/rustup

WORKDIR /workspace

USER ubuntu
7 changes: 3 additions & 4 deletions .cursor/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Idempotent Cloud Agent install: match CI gates (fmt, clippy, test --all-features).
# Idempotent Cloud Agent install: prefetch and compile only (no fmt/clippy/test execution).
set -euo pipefail

rustc --version | grep -F '1.99.0 ' \
Expand All @@ -9,6 +9,5 @@ rustc --version | grep -F '1.99.0 ' \
}

cargo fetch --locked
cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-features
cargo build --all-features --locked
cargo test --no-run --all-features --locked
Loading