Skip to content

Commit c5d7e6c

Browse files
leeminju531doosan-robotics
authored andcommitted
Create docker-image.yml
1 parent d9ba303 commit c5d7e6c

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/docker-image.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "humble-devel" ]
6+
pull_request:
7+
branches: [ "humble-devel" ]
8+
9+
jobs:
10+
test_docker: # On Linux, iterates on all ROS 1 and ROS 2 distributions.
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
ros_distribution:
15+
- humble
16+
include:
17+
# Humble Hawksbill (May 2022 - May 2027)
18+
- docker_image: ubuntu:jammy
19+
ros_distribution: humble
20+
ros_version: 2
21+
container:
22+
image: ${{ matrix.docker_image }}
23+
steps:
24+
- name: setup ROS environment
25+
uses: ros-tooling/[email protected]
26+
with:
27+
required-ros-distributions: ${{ matrix.ros_distribution }}
28+
- name: doosan dependencies install - poco
29+
run: apt-get install -y libpoco-dev libyaml-cpp-dev dbus-x11
30+
31+
- name: doosan dependencies install - Docker
32+
run: apt-get update && apt-get install -y ca-certificates curl && install -m 0755 -d /etc/apt/keyrings &&
33+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc &&
34+
chmod a+r /etc/apt/keyrings/docker.asc &&
35+
echo \
36+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu
37+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" |
38+
tee /etc/apt/sources.list.d/docker.list > /dev/null
39+
40+
- name: doosan dependencies install - Emulator
41+
run: apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin &&
42+
docker pull doosanrobot/dsr_emulator:3.0.1
43+
44+
- name: build and test ROS 2
45+
if: ${{ matrix.ros_version == 2 }}
46+
uses: ros-tooling/[email protected]
47+
with:
48+
package-name: a0912_moveit_config dsr_description2 h2515_moveit_config m1509_moveit_config
49+
common2 dsr_gazebo2 e0509_moveit_config m0609_moveit_config realtime_control
50+
dsr_bringup2 dsr_hardware2 example m0617_moveit_config visualservoing
51+
a0509_moveit_config dsr_controller2 dsr_msgs2 h2017_moveit_config m1013_moveit_config
52+
# all packages except for 'dsr_tests'
53+
54+
target-ros2-distro: ${{ matrix.ros_distribution }}

0 commit comments

Comments
 (0)