Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use build base image from gz-sim-server #7

Merged
merged 1 commit into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM ubuntu:22.04 AS builder

ENV DEBIAN_FRONTEND=noninteractive
FROM ghcr.io/tiiuae/gz-sim-server:main AS builder

RUN apt-get update -y \
&& apt install -y \
Expand All @@ -11,12 +9,6 @@ RUN apt-get update -y \
libboost-filesystem-dev \
libtinyxml-dev

RUN sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' \
&& wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add - \
&& apt update -y

RUN apt install -y libgz-sim8-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 && \
Expand All @@ -35,5 +27,4 @@ RUN ./build.sh
FROM busybox

WORKDIR /artifacts
COPY --from=builder /px4-plugins/build/*.so /artifacts

COPY --from=builder /px4-plugins/build/*.so /artifacts
Loading