Skip to content

Instantly share code, notes, and snippets.

@khancyr
Created March 31, 2022 19:40
Show Gist options
  • Save khancyr/210f69c40c7cfffa199b722df3b4216b to your computer and use it in GitHub Desktop.
Save khancyr/210f69c40c7cfffa199b722df3b4216b to your computer and use it in GitHub Desktop.
ArduPilot ignition plugin dirty builder
FROM ubuntu:20.04
WORKDIR /ardupilot_ignition
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install --no-install-recommends -y \
lsb-release \
sudo \
software-properties-common \
wget \
make \
cmake \
g++ \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null \
&& apt update && apt install --no-install-recommends -y \
rapidjson-dev libignition-gazebo6-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN git clone https://github.com/ArduPilot/ardupilot_gazebo -b ignition-fortress \
&& cd ardupilot_gazebo \
&& mkdir build && cd build \
&& cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
&& make -j4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment