forked from Auterion/px4-simulation-ignition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 861 Bytes
/
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
FROM ghcr.io/tiiuae/gz-sim-server:main AS builder
RUN apt-get update -y \
&& apt install -y \
wget lsb-core \
build-essential \
cmake \
git \
libboost-filesystem-dev \
libtinyxml-dev
# Clone c_library_v2 commit matching with current px4-firmware mavlink commit
# => mavlink/c_library_v2:fbdb7c29 is built from mavlink/mavlink:08112084
RUN git clone -q https://github.com/mavlink/c_library_v2.git /usr/local/include/mavlink && \
cd /usr/local/include/mavlink && git checkout -q fbdb7c29e47902d44eeaa58b4395678a9b78f3ae && \
rm -rf /usr/local/include/mavlink/.git
ENV _MAVLINK_INCLUDE_DIR /usr/local/include/mavlink
WORKDIR /px4-plugins
ADD . .
RUN ./build.sh
#---------------------------------------------------------------------
FROM busybox
WORKDIR /artifacts
COPY --from=builder /px4-plugins/build/*.so /artifacts