Skip to content

Commit

Permalink
Add Dockerfile for moveit-ci-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Feb 16, 2025
1 parent cdff84d commit a195f9f
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 8 deletions.
16 changes: 16 additions & 0 deletions .github/docker/moveit-ci-testing/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# moveit/moveit:jammy-ci-testing
# Sets up a base image to use for running Continuous Integration

ARG DEB_DISTRO=jammy
FROM moveit/moveit:${DEB_DISTRO}-ci
LABEL org.opencontainers.image.authors="Robert Haschke <rhaschke@techfak.uni-bielefeld.de>"

# Switch to ros-testing
RUN . /etc/os-release && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/ros-one-keyring.gpg] https://ros.packages.techfak.net ${VERSION_CODENAME}-testing main" | tee /etc/apt/sources.list.d/ros1.list && \
# Upgrade packages to ros-testing and clean apt-cache within one RUN command
apt-get update && \
apt-get -qq -y dist-upgrade && \
#
# Clear apt-cache to reduce image size
rm -rf /var/lib/apt/lists/*
3 changes: 2 additions & 1 deletion .github/docker/moveit-ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# moveit/moveit:jammy-ci
# Sets up a base image to use for running Continuous Integration on Travis
# Sets up a base image to use for running Continuous Integration

ARG DEB_DISTRO=jammy
FROM ubiagni/ros:${DEB_DISTRO}-ros-base
LABEL org.opencontainers.image.authors="Robert Haschke <rhaschke@techfak.uni-bielefeld.de>"

ENV TERM=xterm
ENV IN_DOCKER=1
Expand Down
1 change: 1 addition & 0 deletions .github/docker/ros-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG DEB_DISTRO=jammy
FROM ubiagni/ros:${DEB_DISTRO}-ros-core
LABEL org.opencontainers.image.authors="Robert Haschke <rhaschke@techfak.uni-bielefeld.de>"

# install bootstrap tools
RUN apt-get update && apt-get install --no-install-recommends -y \
Expand Down
1 change: 1 addition & 0 deletions .github/docker/ros-core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG DEB_DISTRO=jammy
FROM ubuntu:${DEB_DISTRO}
LABEL org.opencontainers.image.authors="Robert Haschke <rhaschke@techfak.uni-bielefeld.de>"

# setup timezone
RUN echo 'Etc/UTC' > /etc/timezone && \
Expand Down
1 change: 1 addition & 0 deletions .github/docker/ros-desktop-full/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG DEB_DISTRO=jammy
FROM ubiagni/ros:${DEB_DISTRO}-ros-desktop
LABEL org.opencontainers.image.authors="Robert Haschke <rhaschke@techfak.uni-bielefeld.de>"

# install ros packages
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
1 change: 1 addition & 0 deletions .github/docker/ros-desktop/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG DEB_DISTRO=jammy
FROM ubiagni/ros:${DEB_DISTRO}-ros-robot
LABEL org.opencontainers.image.authors="Robert Haschke <rhaschke@techfak.uni-bielefeld.de>"

# install ros packages
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
1 change: 1 addition & 0 deletions .github/docker/ros-robot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG DEB_DISTRO=jammy
FROM ubiagni/ros:${DEB_DISTRO}-ros-base
LABEL org.opencontainers.image.authors="Robert Haschke <rhaschke@techfak.uni-bielefeld.de>"

# install ros packages
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ jobs:
fail-fast: false
matrix:
DEB_DISTRO: [jammy, noble]
ROS_DISTRO: [one]

uses: ./.github/workflows/docker.build.yaml
secrets: inherit
with:
CONTEXT: ros-core
DEB_DISTRO: ${{ matrix.DEB_DISTRO }}
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}


ros-base:
Expand All @@ -44,7 +42,6 @@ jobs:
with:
CONTEXT: ros-base
DEB_DISTRO: ${{ matrix.DEB_DISTRO }}
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}


ros-robot:
Expand All @@ -59,7 +56,6 @@ jobs:
with:
CONTEXT: ros-robot
DEB_DISTRO: ${{ matrix.DEB_DISTRO }}
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}


ros-desktop:
Expand All @@ -74,7 +70,6 @@ jobs:
with:
CONTEXT: ros-desktop
DEB_DISTRO: ${{ matrix.DEB_DISTRO }}
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}


ros-desktop-full:
Expand All @@ -89,7 +84,6 @@ jobs:
with:
CONTEXT: ros-desktop-full
DEB_DISTRO: ${{ matrix.DEB_DISTRO }}
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}


moveit-ci:
Expand All @@ -105,4 +99,17 @@ jobs:
CONTEXT: moveit-ci
IMAGE: moveit/moveit:${{ matrix.DEB_DISTRO }}-ci
DEB_DISTRO: ${{ matrix.DEB_DISTRO }}
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}

moveit-ci-testing:
needs: moveit-ci
strategy:
fail-fast: false
matrix:
DEB_DISTRO: [jammy, noble]

uses: ./.github/workflows/docker.build.yaml
secrets: inherit
with:
CONTEXT: moveit-ci-testing
IMAGE: moveit/moveit:${{ matrix.DEB_DISTRO }}-ci-testing
DEB_DISTRO: ${{ matrix.DEB_DISTRO }}

0 comments on commit a195f9f

Please sign in to comment.