-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (38 loc) · 1.35 KB
/
Dockerfile
File metadata and controls
46 lines (38 loc) · 1.35 KB
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
36
37
38
39
40
41
42
43
44
45
46
FROM debian:bookworm
RUN apt-get update && \
apt-get clean && \
apt-get install -y --no-install-recommends \
build-essential \
gcc-arm-none-eabi \
gdb-arm-none-eabi \
binutils-arm-none-eabi \
libnewlib-arm-none-eabi \
picolibc-arm-none-eabi \
openocd \
python3 \
python3-pip \
git \
wget \
ftp \
xxd \
neovim \
sudo
RUN wget --progress=dot:giga --no-check-certificate --content-disposition -c \
https://sourceforge.net/projects/adi-toolchain/files/2014R1/2014R1-RC2/x86_64/blackfin-toolchain-elf-gcc-4.3-2014R1-RC2.x86_64.tar.bz2
RUN tar -xjvf blackfin-toolchain-elf-gcc-4.3-2014R1-RC2.x86_64.tar.bz2?viasf=1 -C / && \
rm /blackfin-toolchain-elf-gcc-4.3-2014R1-RC2.x86_64.tar.bz2?viasf=1
# Add openocd-bfin
ENV PATH "/opt/uClinux/bfin-elf/bin/:$PATH"
ENV LIB_GCC="/usr/lib/gcc/arm-none-eabi/12.2.1/"
ENV LIB_C="/usr/lib/arm-none-eabi/newlib/"
ENV BFIN_TOOLCHAIN="/opt/uClinux/bfin-elf/bin/"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN useradd -G sudo -ms /bin/bash user && \
echo "user:password" | chpasswd && \
echo "ALL ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
echo "alias python=python3" >> /home/user/.bashrc && \
echo "alias ll='ls -lah'" >> /home/user/.bashrc && \
echo "alias vim=nvim" >> /home/user/.bashrc
USER user
WORKDIR /freetribe
ENTRYPOINT ["/bin/bash"]