-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubuntu2204.r4e
35 lines (26 loc) · 1.18 KB
/
Dockerfile.ubuntu2204.r4e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM devc-ubuntu2204
# rustforembedded specific packages
USER root
# updated cmake
RUN /usr/bin/bash -c 'wget https://apt.kitware.com/kitware-archive.sh'
RUN chmod +x ./kitware-archive.sh
RUN /usr/bin/bash -c "./kitware-archive.sh"
RUN apt-get install -y cmake
# ARM GCC 10.3
RUN wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
RUN tar -x -C $HOME/.local/ -f gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
RUN echo "export PATH=\$HOME/.local/gcc-arm-none-eabi-10.3-2021.10/bin:\$PATH" >> $HOME/.bashrc
RUN /bin/bash -c 'ls $HOME/.local/gcc-arm-none-eabi-10.3-2021.10/bin | xargs -I{} ln -s $HOME/.local/gcc-arm-none-eabi-10.3-2021.10/bin/{} /bin/{}'
# newt
RUN wget -qO - https://raw.githubusercontent.com/JuulLabs-OSS/debian-mynewt/master/mynewt.gpg.key | apt-key add -
RUN echo "deb https://raw.githubusercontent.com/JuulLabs-OSS/debian-mynewt/master latest main" > /etc/apt/sources.list.d/mynewt.list
RUN apt-get update && \
apt-get install -y newt
RUN apt-get install -y \
bear
USER ${USER}
# after starting container, use nix for installing
# - neovim
# - lazygit
# start fish shell
# ENTRYPOINT ["fish"]