Refactor ere-dockerized (#77)

This commit is contained in:
Han
2025-08-05 14:17:11 +08:00
committed by GitHub
parent 42e7c6c416
commit bddb264ab3
38 changed files with 386 additions and 380 deletions

View File

@@ -9,16 +9,13 @@ FROM ${BASE_IMAGE_TAG}
COPY scripts/sdk_installers/install_nexus_sdk.sh /tmp/install_nexus_sdk.sh
RUN chmod +x /tmp/install_nexus_sdk.sh
RUN rustup default nightly-2025-06-05 && \
rustup target add riscv32i-unknown-none-elf
# Run the Nexus SDK installation script.
# This script installs the specific Rust toolchain (nightly-2025-06-05)
# and installs cargo-nexus
# The CARGO_HOME from ere-base (e.g., /root/.cargo) will be used, and cargo-nexus will be in its bin.
RUN /tmp/install_nexus_sdk.sh && rm /tmp/install_nexus_sdk.sh # Clean up the script
# Define the Nexus toolchain for convenience in subsequent commands if needed, though cargo-nexus should use it.
# Define the Nexus toolchain for convenience in subsequent commands if needed, though cargo pico should use it.
ENV NEXUS_TOOLCHAIN_VERSION="nightly-2025-06-05"
# Set default toolchain

View File

@@ -35,7 +35,7 @@ RUN wget https://developer.download.nvidia.com/compute/cuda/repos/$(. /etc/os-re
dpkg -i cuda-keyring_1.1-1_all.deb && \
rm cuda-keyring_1.1-1_all.deb && \
apt update && \
apt install -y cuda-toolkit && \
apt install -y cuda-toolkit-12-9 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# If current environment is in CI or not.