Skip to content

Commit f43c618

Browse files
committed
Change to URSim docker image
Instead of building one in the CI we now uses the image made by UR
1 parent 1f080c0 commit f43c618

File tree

9 files changed

+28
-18
lines changed

9 files changed

+28
-18
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,27 @@ on: [push, pull_request]
33

44
jobs:
55
build:
6+
timeout-minutes: 30
67
runs-on: ubuntu-latest
78
strategy:
89
matrix:
910
env:
1011
- DOCKER_RUN_OPTS: --network static_test_net
1112
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
1213
CTEST_OUTPUT_ON_FAILURE: 1
13-
URSIM_VERSION: 3.14.1.1031110
14+
URSIM_DOCKER_IMAGE: 'universalrobots/ursim_cb3:3.12.1'
15+
PROGRAM_FOLDER: 'programs/cb3'
1416
- DOCKER_RUN_OPTS: --network static_test_net
1517
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
1618
CTEST_OUTPUT_ON_FAILURE: 1
17-
URSIM_VERSION: 5.8.0.10253
19+
URSIM_DOCKER_IMAGE: 'universalrobots/ursim_e-series:5.5.1'
20+
PROGRAM_FOLDER: 'programs/e-series'
1821

1922
steps:
2023
- uses: actions/checkout@v1
2124
- name: start ursim
2225
run: |
23-
tests/resources/dockerursim/build_and_run_docker_ursim.sh $URSIM_VERSION
26+
tests/resources/dockerursim/build_and_run_docker_ursim.sh $URSIM_DOCKER_IMAGE $PROGRAM_FOLDER
2427
env: ${{matrix.env}}
2528
- name: install gtest
2629
run: sudo apt-get install -y libgtest-dev

.github/workflows/industrial-ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,53 +25,59 @@ jobs:
2525
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS_Driver#master https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS_Driver/master/.melodic.rosinstall"
2626
DOCKER_RUN_OPTS: --network static_test_net
2727
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
28-
URSIM_VERSION: 5.8.0.10253
28+
URSIM_DOCKER_IMAGE: 'universalrobots/ursim_e-series:5.5.1'
29+
PROGRAM_FOLDER: 'programs/e-series'
2930
- ROS_DISTRO: noetic
3031
ROS_REPO: main
3132
IMMEDIATE_TEST_OUTPUT: true
3233
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS_Driver#master https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS_Driver/master/.noetic.rosinstall"
3334
BUILDER: catkin_tools
3435
DOCKER_RUN_OPTS: --network static_test_net
3536
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
36-
URSIM_VERSION: 5.8.0.10253
37+
URSIM_DOCKER_IMAGE: 'universalrobots/ursim_e-series:5.5.1'
38+
PROGRAM_FOLDER: 'programs/e-series'
3739
- ROS_DISTRO: foxy
3840
ROS_REPO: main
3941
IMMEDIATE_TEST_OUTPUT: true
4042
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#foxy"
4143
DOCKER_RUN_OPTS: --network static_test_net
4244
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
43-
URSIM_VERSION: 5.8.0.10253
45+
URSIM_DOCKER_IMAGE: 'universalrobots/ursim_e-series:5.5.1'
46+
PROGRAM_FOLDER: 'programs/e-series'
4447
NOT_TEST_DOWNSTREAM: true
4548
- ROS_DISTRO: galactic
4649
ROS_REPO: main
4750
IMMEDIATE_TEST_OUTPUT: true
4851
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#galactic"
4952
DOCKER_RUN_OPTS: --network static_test_net
5053
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
51-
URSIM_VERSION: 5.8.0.10253
54+
URSIM_DOCKER_IMAGE: 'universalrobots/ursim_e-series:5.5.1'
55+
PROGRAM_FOLDER: 'programs/e-series'
5256
NOT_TEST_DOWNSTREAM: true
5357
- ROS_DISTRO: humble
5458
ROS_REPO: main
5559
IMMEDIATE_TEST_OUTPUT: true
5660
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#main https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS2_Driver/main/Universal_Robots_ROS2_Driver-not-released.humble.repos"
5761
DOCKER_RUN_OPTS: --network static_test_net
5862
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
59-
URSIM_VERSION: 5.8.0.10253
63+
URSIM_DOCKER_IMAGE: 'universalrobots/ursim_e-series:5.5.1'
64+
PROGRAM_FOLDER: 'programs/e-series'
6065
NOT_TEST_DOWNSTREAM: true
6166
- ROS_DISTRO: rolling
6267
ROS_REPO: main
6368
IMMEDIATE_TEST_OUTPUT: true
6469
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#main https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS2_Driver/main/Universal_Robots_ROS2_Driver-not-released.rolling.repos"
6570
DOCKER_RUN_OPTS: --network static_test_net
6671
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
67-
URSIM_VERSION: 5.8.0.10253
72+
URSIM_DOCKER_IMAGE: 'universalrobots/ursim_e-series:5.5.1'
73+
PROGRAM_FOLDER: 'programs/e-series'
6874
NOT_TEST_DOWNSTREAM: true
6975

7076
steps:
7177
- uses: actions/checkout@v1
7278
- name: start ursim
7379
run: |
74-
tests/resources/dockerursim/build_and_run_docker_ursim.sh $URSIM_VERSION
80+
tests/resources/dockerursim/build_and_run_docker_ursim.sh $URSIM_DOCKER_IMAGE $PROGRAM_FOLDER
7581
env: ${{matrix.env}}
7682
- uses: 'ros-industrial/industrial_ci@master'
7783
env: ${{matrix.env}}
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
#!/bin/bash
22

33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4-
URSIM_VERSION="${1:-5.8.0.10253}"
4+
URSIM_DOCKER_IMAGE=${1}
5+
PROGRAM_FOLDER=${2}
56

67
docker network create --subnet=192.168.56.0/24 static_test_net
78

8-
docker build ${DIR} -t mydockerursim --build-arg VERSION="${URSIM_VERSION}"
9-
docker volume create dockerursim
10-
docker run --name="mydockerursim" -d \
11-
-e ROBOT_MODEL=UR5 \
9+
docker run --rm -it -d \
10+
--name ursim \
1211
--net static_test_net \
1312
--ip 192.168.56.101 \
1413
-p 8080:8080 \
1514
-p 29999:29999 \
1615
-p 30001-30004:30001-30004 \
17-
-v "${DIR}/.vol":/ursim/programs \
18-
-v dockursim:/ursim \
16+
-v "${DIR}/${PROGRAM_FOLDER}":/ursim/programs \
1917
--privileged \
2018
--cpus=1 \
21-
mydockerursim
19+
${URSIM_DOCKER_IMAGE}
1.86 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#
2+
#Thu Oct 20 15:39:24 CEST 2022
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/ursim/programs.UR5

0 commit comments

Comments
 (0)