-
Notifications
You must be signed in to change notification settings - Fork 102
/
Dockerfile_armhf
95 lines (84 loc) · 2.24 KB
/
Dockerfile_armhf
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# PX4 build for arm-hf boards, such as
# RPi, Parrot Bebop, and OcPoC-Zynq
#
# This contains the steps to build for the
# POSIX Linux running on Raspberry Pi,
# Parrot Bebop, or OcPoC-Zynq
#
# Debian 11 https://www.debian.org/releases/
FROM debian:bullseye
LABEL maintainer="Daniel Agar <daniel@agar.ca>"
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN apt-get update && apt-get -y --quiet --no-install-recommends install \
bzip2 \
ca-certificates \
ccache \
clang \
clang-tidy \
cmake \
cppcheck \
curl \
default-jdk-headless \
dirmngr \
doxygen \
file \
g++ \
g++-arm-linux-gnueabihf \
gcc \
gcc-arm-linux-gnueabihf \
gdb \
gdb-multiarch \
git \
gnupg \
gosu \
lcov \
libfreetype6-dev \
libgtest-dev \
libpng-dev \
libssl-dev \
lsb-release \
make \
ninja-build \
openssh-client \
pkg-config \
python3-dev \
python3-pip \
python3-venv \
rsync \
shellcheck \
tzdata \
unzip \
wget \
xsltproc \
zip \
&& apt-get -y autoremove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
# Install Python 3 pip build dependencies first.
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
RUN pip3 install wheel setuptools
# Python 3 dependencies installed by pip
RUN pip3 install argparse argcomplete coverage cerberus empy==3.3.4 jinja2 kconfiglib \
matplotlib==3.0.* numpy packaging pkgconfig pyros-genmsg pyulog \
pyyaml requests serial six toml psutil pyulog wheel jsonschema
# astyle v3.1
RUN wget -q https://downloads.sourceforge.net/project/astyle/astyle/astyle%203.1/astyle_3.1_linux.tar.gz -O /tmp/astyle.tar.gz \
&& cd /tmp && tar zxf astyle.tar.gz && cd astyle/src \
&& make -f ../build/gcc/Makefile -j$(nproc) && cp bin/astyle /usr/local/bin \
&& rm -rf /tmp/*
# create user with id 1001 (jenkins docker workflow default)
RUN useradd --shell /bin/bash -u 1001 -c "" -m user && usermod -a -G dialout user
ENV CCACHE_UMASK=000
ENV PATH="/usr/lib/ccache:$PATH"
ENV TERM=xterm
ENV TZ=UTC
# SITL UDP PORTS
EXPOSE 14556/udp
EXPOSE 14557/udp
# create and start as LOCAL_USER_ID
COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["/bin/bash"]