Skip to content

Commit 4ad84cc

Browse files
sea-basssjahr
andauthored
Install Gazebo in tutorial image Dockerfile (#2952)
* Install Gazebo in tutorial image Dockerfile * Add Jazzy job --------- Co-authored-by: Sebastian Jahr <[email protected]>
1 parent 38c1fd0 commit 4ad84cc

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.docker/tutorial-source/Dockerfile

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# syntax = docker/dockerfile:1.3
22

33
# ghcr.io/moveit/moveit2:main-${ROS_DISTRO}-tutorial-source
4-
# Source build of the repos file from the tutorail site
4+
# Source build of the repos file from the tutorial site
55

66
ARG ROS_DISTRO=rolling
7+
ARG GZ_VERSION=harmonic
8+
79
FROM moveit/moveit2:${ROS_DISTRO}-ci
810
LABEL maintainer Tyler Weaver [email protected]
911

12+
ARG GZ_VERSION
13+
1014
# Export ROS_UNDERLAY for downstream docker containers
1115
ENV ROS_UNDERLAY /root/ws_moveit/install
1216
WORKDIR $ROS_UNDERLAY/..
@@ -17,6 +21,11 @@ COPY . src/moveit2
1721
# Commands are combined in single RUN statement with "apt/lists" folder removal to reduce image size
1822
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#minimize-the-number-of-layers
1923
RUN --mount=type=cache,target=/root/.ccache/,sharing=locked \
24+
# Install Gazebo, which is needed by some dependencies.
25+
sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' && \
26+
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add - && \
27+
sudo apt update && \
28+
sudo apt-get install -y "gz-${GZ_VERSION}" && \
2029
# Enable ccache
2130
PATH=/usr/lib/ccache:$PATH && \
2231
# Checkout the tutorial repo

.github/workflows/tutorial_docker.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
ROS_DISTRO: [rolling, humble, iron]
19+
ROS_DISTRO: [rolling, humble, iron, jazzy]
2020
runs-on: ubuntu-latest
2121
permissions:
2222
packages: write

0 commit comments

Comments
 (0)