Skip to content

Commit

Permalink
Initial docker compose nightly workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Nov 5, 2024
1 parent 8332d4a commit c6b5261
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/integration-tests/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/minimal-zenoh-bridge/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c6b5261

Please sign in to comment.