forked from strongly-typed/docker-arm-none-eabi-gcc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (35 loc) · 1.13 KB
/
Dockerfile
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
FROM ubuntu:18.04
LABEL maintainer="Niklas Hauser <niklas.hauser@rwth-aachen.de>"
LABEL Description="Image for building and debugging arm-embedded projects from git"
WORKDIR /work
ADD . /work
# Install any needed packages specified in requirements.txt
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
python3 \
python3-pip \
python \
python3-dev \
python-dev \
protobuf-compiler \
perl \
clang-tools \
clang \
srecord \
# Development files
build-essential \
git \
bzip2 \
wget && \
apt-get clean
RUN pip3 install protobuf
RUN pip3 install protobuf-compiler
RUN wget -qO- "https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
RUN wget -qO- "https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2"| tar -xj
RUN apt install -y software-properties-common
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt-get update
RUN apt install -y gcc-10
RUN apt install -y g++-10
ENV PATH "/work/gcc-arm-none-eabi-10-2020-q4-major/bin:$PATH"