Skip to content

Commit

Permalink
Merge pull request #1485 from mavlink/pr-px4-v1.12
Browse files Browse the repository at this point in the history
docker/workflows: add PX4 v1.12 release to CI
  • Loading branch information
julianoes authored Jul 21, 2021
2 parents 33707c2 + 493f3b1 commit 305fbdd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ jobs:
container: mavsdk/mavsdk-ubuntu-20.04-px4-sitl-${{ matrix.px4_version }}
strategy:
matrix:
px4_version: [v1.11]
px4_version: [v1.11, v1.12]
steps:
- uses: actions/checkout@v2
with:
Expand Down
25 changes: 25 additions & 0 deletions docker/Dockerfile-Ubuntu-20.04-PX4-SITL-v1.12
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# PX4 v1.12.0 SITL testing environment for MAVSDK based on Ubuntu 20.04.
# Author: Julian Oes <[email protected]>
#
FROM mavsdk/mavsdk-ubuntu-20.04
MAINTAINER Julian Oes <[email protected]>

ENV FIRMWARE_DIR ${WORKDIR}../Firmware

RUN apt-get update && \
apt-get install -y git locales \
&& apt-get -y autoremove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*

RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
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} checkout v1.12.0
RUN git -C ${FIRMWARE_DIR} submodule update --init --recursive
RUN cd ${FIRMWARE_DIR} && Tools/setup/ubuntu.sh --no-nuttx
RUN cd ${FIRMWARE_DIR} && DONT_RUN=1 make px4_sitl gazebo && DONT_RUN=1 make px4_sitl gazebo
2 changes: 2 additions & 0 deletions docker/build_and_push_docker_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ docker build -f Dockerfile-Ubuntu-20.04 -t mavsdk/mavsdk-ubuntu-20.04 .
docker build -f Dockerfile-Ubuntu-18.04-PX4-SITL-v1.9 -t mavsdk/mavsdk-ubuntu-18.04-px4-sitl-v1.9 .
docker build -f Dockerfile-Ubuntu-18.04-PX4-SITL-v1.10 -t mavsdk/mavsdk-ubuntu-18.04-px4-sitl-v1.10 .
docker build -f Dockerfile-Ubuntu-20.04-PX4-SITL-v1.11 -t mavsdk/mavsdk-ubuntu-20.04-px4-sitl-v1.11 .
docker build -f Dockerfile-Ubuntu-20.04-PX4-SITL-v1.12 -t mavsdk/mavsdk-ubuntu-20.04-px4-sitl-v1.12 .

docker push mavsdk/mavsdk-fedora-32:latest
docker push mavsdk/mavsdk-fedora-33:latest
Expand All @@ -17,3 +18,4 @@ docker push mavsdk/mavsdk-ubuntu-20.04:latest
docker push mavsdk/mavsdk-ubuntu-18.04-px4-sitl-v1.9:latest
docker push mavsdk/mavsdk-ubuntu-18.04-px4-sitl-v1.10:latest
docker push mavsdk/mavsdk-ubuntu-20.04-px4-sitl-v1.11:latest
docker push mavsdk/mavsdk-ubuntu-20.04-px4-sitl-v1.12:latest

0 comments on commit 305fbdd

Please sign in to comment.