-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55ffc02
commit cbb448b
Showing
2 changed files
with
32 additions
and
43 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,29 +1,21 @@ | ||
FROM ros:noetic-ros-base-focal | ||
|
||
RUN sudo apt-get update && \ | ||
sudo apt-get install -y software-properties-common && \ | ||
sudo apt-get update && \ | ||
sudo add-apt-repository -y ppa:git-core/ppa && \ | ||
sudo apt-get update && \ | ||
sudo apt-get install -y git python3 python3-pip python-is-python3 python3-rosdep ros-noetic-tf libeigen3-dev wget && \ | ||
sudo apt-get update && \ | ||
sudo mkdir /install-dir && \ | ||
cd /install-dir && \ | ||
wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 --no-check-certificate && \ | ||
tar -xjvf gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 && \ | ||
sudo python -m pip install https://github.com/purduesigbots/pros-cli/releases/download/3.1.4/pros_cli_v5-3.1.4-py3-none-any.whl | ||
|
||
ENV PATH "$PATH:/install-dir/gcc-arm-none-eabi-9-2020-q2-update/bin/" | ||
|
||
# install Rust toolchain | ||
RUN sudo apt-get install curl | ||
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2022-11-11 -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
RUN sudo apt-get install clang -y | ||
|
||
|
||
RUN echo "export PATH=/install-dir/gcc-arm-none-eabi-9-2020-q2-update/bin/:${PATH}" >> /root/.bashrc | ||
|
||
RUN echo "source /opt/ros/noetic/setup.bash" >> /root/.bashrc | ||
|
||
FROM rustlang/rust:nightly-slim | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV VERSION=nightly-2022-11-11 | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libclang-dev llvm-dev gcc-arm-none-eabi | ||
|
||
RUN rustup install $VERSION | ||
RUN rustup component add --toolchain=$VERSION rust-src rustfmt llvm-tools-preview clippy | ||
|
||
|
||
RUN apt-get update && \ | ||
apt-get install -y software-properties-common && \ | ||
apt-get update && \ | ||
apt-get install -y git python3 python3-pip python-is-python3 wget && \ | ||
python3 -m pip install pros-cli | ||
|
||
|
||
|
||
|
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