forked from mavlink/MAVSDK
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: switch to Ubuntu 22.04 and clang-format-12
This bases the PX4 v1.13 SITL build on top of Ubuntu 22.04. This is nice because it allows us to switch to clang-format version 12. clang-format-12 is a nice choice because it is available for both Ubuntu 20.04 as well as Ubuntu 22.04.
- Loading branch information
Showing
5 changed files
with
76 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# | ||
# Development environment for MAVSDK based on Ubuntu 22.04. | ||
# | ||
# Author: Julian Oes <[email protected]> | ||
# | ||
|
||
FROM ubuntu:22.04 | ||
MAINTAINER Julian Oes <[email protected]> | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
|
||
RUN apt-get update \ | ||
&& apt-get -y --quiet --no-install-recommends install \ | ||
autoconf \ | ||
automake \ | ||
autotools-dev \ | ||
build-essential \ | ||
ca-certificates \ | ||
ccache \ | ||
clang-format-12 \ | ||
cmake \ | ||
colordiff \ | ||
doxygen \ | ||
git \ | ||
golang-go \ | ||
libcurl4-openssl-dev \ | ||
libltdl-dev \ | ||
libtinyxml2-dev \ | ||
libtool \ | ||
libz-dev \ | ||
ninja-build \ | ||
python3 \ | ||
python3-pip \ | ||
python3-future \ | ||
ruby-dev \ | ||
software-properties-common \ | ||
sudo \ | ||
wget \ | ||
&& apt-get -y autoremove \ | ||
&& apt-get clean autoclean \ | ||
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/* | ||
|
||
RUN gem install --no-document fpm; | ||
|
||
RUN wget -qO- https://github.com/ncopa/su-exec/archive/dddd1567b7c76365e1e0aac561287975020a8fad.tar.gz | tar xvz && \ | ||
cd su-exec-* && make && mv su-exec /usr/local/bin && cd .. && rm -rf su-exec-* | ||
|
||
# Create user with id 1001 (Jenkins docker workflow default) | ||
RUN useradd --shell /bin/bash -u 1001 -c "" -m user | ||
|
||
ADD /sudoers.txt /etc/sudoers | ||
RUN chmod 440 /etc/sudoers | ||
|
||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh | ||
|
||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
|
||
WORKDIR "/home/user/MAVSDK" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# | ||
# PX4 v1.13 SITL testing environment for MAVSDK based on Ubuntu 20.04. | ||
# PX4 v1.13 SITL testing environment for MAVSDK based on Ubuntu 22.04. | ||
# Author: Julian Oes <[email protected]> | ||
# | ||
FROM mavsdk/mavsdk-ubuntu-20.04 | ||
FROM mavsdk/mavsdk-ubuntu-22.04 | ||
MAINTAINER Julian Oes <[email protected]> | ||
|
||
ENV FIRMWARE_DIR ${WORKDIR}../Firmware | ||
|
@@ -19,7 +19,9 @@ ENV LANGUAGE en_US:en | |
ENV LC_ALL en_US.UTF-8 | ||
|
||
RUN git clone https://github.com/PX4/Firmware.git ${FIRMWARE_DIR} | ||
RUN git -C ${FIRMWARE_DIR} switch release/1.13 | ||
RUN git -C ${FIRMWARE_DIR} checkout v1.13.0 | ||
# We need the updated ubuntu.sh script for Ubuntu 22.04 | ||
RUN git -C ${FIRMWARE_DIR} checkout 1a620b450d235d654751b5f28d882bd426aa6e39 -- Tools/setup/ubuntu.sh | ||
RUN git -C ${FIRMWARE_DIR} submodule update --init --recursive | ||
RUN wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add - | ||
RUN cd ${FIRMWARE_DIR} && Tools/setup/ubuntu.sh --no-nuttx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters