From 78a3771df4a32e04987f5a11dadfac2eb1611b56 Mon Sep 17 00:00:00 2001 From: Matt Hansen Date: Tue, 3 Sep 2024 13:36:47 -0700 Subject: [PATCH 1/2] Add build workflow (fix issue #35) --- .github/workflows/docker-image.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 00000000..3bd2f240 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,26 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Run the build.sh scripts + run: | + # find the build.sh scripts and execute them + echo "Running all build.sh scripts in repo" + for f in $(find . -iname 'build.sh') + do + $f || exit 1 + done + echo "Done running build.sh scripts" From a1e83cfc6ddff0ef568c3bb9813b572fd7e16d13 Mon Sep 17 00:00:00 2001 From: Matthew Hansen Date: Wed, 4 Sep 2024 08:26:00 -0700 Subject: [PATCH 2/2] Add build instructions to README (fix issue #35) --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f178b65..47e3bd4b 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,12 @@ This repository provides examples for running robots using Space ROS -Please refer to the [dockerfile repo](https://github.com/space-ros/docker/tree/main/space_robots) for running instruction +Submissions to this repo should include: +1) A Dockerfile or docker-compose.yaml file for building on top of the `osrf/space-ros:latest` +2) A `build.sh` script for building the docker image + - This is required for CI to build the image + - See example here: https://github.com/space-ros/docker/blob/main/space_robots/build.sh +3) A `run.sh` script for running the demo + - - See example here: https://github.com/space-ros/docker/blob/main/space_robots/run.sh + +Please refer to the [dockerfile repo](https://github.com/space-ros/docker/tree/main/space_robots) for instructions on running the existing demos