From c6b5261a6e5fa278532e235796bf54978ceb2af4 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Tue, 5 Nov 2024 15:07:36 +0800 Subject: [PATCH] Initial docker compose nightly workflow Signed-off-by: Aaron Chong --- .github/integration-tests/docker-compose.yaml | 30 +++++++++++++++++++ .github/minimal-zenoh-bridge/Dockerfile | 2 +- .github/workflows/nightly.yaml | 30 +++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 .github/integration-tests/docker-compose.yaml create mode 100644 .github/workflows/nightly.yaml diff --git a/.github/integration-tests/docker-compose.yaml b/.github/integration-tests/docker-compose.yaml new file mode 100644 index 0000000..3e21ff0 --- /dev/null +++ b/.github/integration-tests/docker-compose.yaml @@ -0,0 +1,30 @@ +version: "3" + +services: + minimal-nav2: + image: minimal-nav2 + build: + context: .github/minimal-nav2 + # dockerfile: .github/minimal-nav2 + container_name: minimal-nav2 + stop_signal: SIGINT + network_mode: host + privileged: true + stdin_open: true + tty: true + environment: + - ROS_DOMAIN_ID=42 + # command: ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False + + zenoh-bridge: + image: minimal-zenoh-bridge + build: + context: .github/minimal-zenoh-bridge + # dockerfile: docker/task_manager/Dockerfile + container_name: minimal-zenoh-bridge + network_mode: host + stdin_open: true + tty: true + environment: + - ROS_DOMAIN_ID=42 + # command: ros2 launch task_manager task_manager.launch.py params_file:=/examples/nav2_example_params.yaml diff --git a/.github/minimal-zenoh-bridge/Dockerfile b/.github/minimal-zenoh-bridge/Dockerfile index 9c0e11b..f07260f 100644 --- a/.github/minimal-zenoh-bridge/Dockerfile +++ b/.github/minimal-zenoh-bridge/Dockerfile @@ -1,6 +1,6 @@ ARG ROS_DISTRO=jazzy FROM docker.io/ros:$ROS_DISTRO-ros-base -ARG ZENOH_VERSION=0.11.0 +ARG ZENOH_VERSION=1.0.0 ARG BRANCH=efc/ci RUN apt update && apt install -y wget unzip ros-jazzy-rmw-cyclonedds-cpp diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml new file mode 100644 index 0000000..6b5ceaf --- /dev/null +++ b/.github/workflows/nightly.yaml @@ -0,0 +1,30 @@ +name: Nightly + +on: push + +jobs: + integration-tests: + timeout-minutes: 10 + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Start containers + run: docker-compose -f ".github/integration-tests/docker-compose.yaml" up -d --build + + # - name: Install node + # uses: actions/setup-node@v1 + # with: + # node-version: 14.x + + # - name: Install dependencies + # run: npm install + + # - name: Run tests + # run: npm run test + + - name: Stop containers + if: always() + run: docker-compose -f ".github/integration-tests/docker-compose.yaml" down