-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (48 loc) · 1.69 KB
/
Dockerfile
File metadata and controls
57 lines (48 loc) · 1.69 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
47
48
49
50
51
52
53
54
55
56
57
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
USER root
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y --no-install-recommends install \
build-essential \
git \
python3 \
python3-pip \
vim \
wget \
can-utils \
gdb-multiarch \
graphviz \
gcc-multilib \
g++-multilib \
can-utils \
openocd \
valgrind \
libncurses5 \
libncurses5-dev \
cmake \
gdb && \
apt-get -y clean
RUN git config --global --add safe.directory /workspace
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN pip install graphviz
RUN pip install reportlab
RUN pip install matplotlib
RUN pip install google-auth==2.40.3
RUN pip install google-auth-oauthlib==1.2.2
RUN pip install google-auth-httplib2==0.2.0
RUN pip install google-api-python-client==2.172.0
RUN wget https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi.tar.xz && \
tar -xf arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi.tar.xz && \
rm arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi.tar.xz
ENV PATH="/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi/bin:${PATH}"
# Install Renode
ARG RENODE_VERSION=1.16.0
RUN wget https://github.com/renode/renode/releases/download/v${RENODE_VERSION}/renode_${RENODE_VERSION}_amd64.deb && \
apt-get update && \
apt-get install -y --no-install-recommends ./renode_${RENODE_VERSION}_amd64.deb python3-dev && \
rm ./renode_${RENODE_VERSION}_amd64.deb && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install -r /opt/renode/tests/requirements.txt --no-cache-dir
CMD ["/bin/bash"]
WORKDIR /workspace/