-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dev container and README (#108)
* docs: * chore:update dockerfile * chore: update dockerfile * chore: make dockerfile multiplayer
- Loading branch information
1 parent
8f34d7f
commit a05f34a
Showing
3 changed files
with
61 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
# Base image for toolchain download | ||
FROM mcr.microsoft.com/devcontainers/rust:latest as toolchain | ||
|
||
RUN mkdir -p /toolchain && \ | ||
curl -L "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz" \ | ||
| tar --strip-components=1 -xJ -C /toolchain | ||
|
||
# Final image | ||
FROM mcr.microsoft.com/devcontainers/rust:latest | ||
|
||
# Copy the toolchain from the previous stage | ||
COPY --from=toolchain /toolchain /toolchain | ||
|
||
ENV PATH="${PATH}:/toolchain/bin" | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get upgrade -y && apt-get install -y cmake pkg-config libusb-1.0-0-dev libftdi1-dev libudev-dev libssl-dev | ||
|
||
# Install ARM GCC deps | ||
RUN mkdir -p toolchain && \ | ||
curl -L "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz" \ | ||
| tar --strip-components=1 -xJ -C toolchain && \ | ||
cargo install --locked probe-rs --features cli | ||
ENV PATH="${PATH}:/toolchain/bin" | ||
# Necessary system packages | ||
RUN apt-get update && apt-get install -y cmake pkg-config libusb-1.0-0-dev libftdi1-dev libudev-dev libssl-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Rust crates | ||
RUN cargo install probe-rs --features cli \ | ||
&& cargo install cargo-make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/target | ||
/.vscode/.cortex-debug.registers.state.json | ||
/.vscode/.cortex-debug.peripherals.state.json | ||
/.vscode/settings.json | ||
/.vscode/settings.json | ||
/toolchain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters