Skip to content

Commit

Permalink
Use trajopt docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Mar 7, 2024
1 parent 87fb327 commit cd3abba
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
env:
TARGET_CMAKE_ARGS: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=Debug -DTESSERACT_ENABLE_CODE_COVERAGE=ON -DTESSERACT_WARNINGS_AS_ERRORS=OFF"
container:
image: ghcr.io/tesseract-robotics/tesseract:jammy-master
image: ghcr.io/tesseract-robotics/trajopt:jammy-master
env:
CCACHE_DIR: "$GITHUB_WORKSPACE/${{ matrix.job_type }}/.ccache"
DEBIAN_FRONTEND: noninteractive
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v2
with:
before-script: source /opt/tesseract/install/setup.bash
before-script: source /opt/tesseract/install/setup.bash && source /opt/trajopt/install/setup.bash
ccache-prefix: ${{ matrix.job_type }}
vcs-file: dependencies_unstable.repos
run-tests: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
distro: [focal, jammy]
container:
image: ghcr.io/tesseract-robotics/tesseract:${{ matrix.distro }}
image: ghcr.io/tesseract-robotics/trajopt:${{ matrix.distro }}
env:
CCACHE_DIR: "$GITHUB_WORKSPACE/${{ matrix.distro }}/.ccache"
DEBIAN_FRONTEND: noninteractive
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v2
with:
before-script: source /opt/tesseract/install/setup.bash
before-script: source /opt/tesseract/install/setup.bash && source /opt/trajopt/install/setup.bash
ccache-prefix: ${{ matrix.distro }}
vcs-file: dependencies.repos
upstream-args: --cmake-args -DCMAKE_BUILD_TYPE=Release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
matrix:
distro: [focal, jammy]
container:
image: ghcr.io/tesseract-robotics/tesseract:${{ matrix.distro }}-0.21
image: ghcr.io/tesseract-robotics/trajopt:${{ matrix.distro }}-0.21
env:
CCACHE_DIR: "$GITHUB_WORKSPACE/${{ matrix.distro }}/.ccache"
DEBIAN_FRONTEND: noninteractive
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v2
with:
before-script: source /opt/tesseract/install/setup.bash
before-script: source /opt/tesseract/install/setup.bash && source /opt/trajopt/install/setup.bash
ccache-prefix: ${{ matrix.distro }}
vcs-file: dependencies.repos
upstream-args: --cmake-args -DCMAKE_BUILD_TYPE=Release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
matrix:
distro: [focal, jammy]
container:
image: ghcr.io/tesseract-robotics/tesseract:${{ matrix.distro }}-master
image: ghcr.io/tesseract-robotics/trajopt:${{ matrix.distro }}-master
env:
CCACHE_DIR: "$GITHUB_WORKSPACE/${{ matrix.distro }}/.ccache"
DEBIAN_FRONTEND: noninteractive
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Build and Tests
uses: tesseract-robotics/colcon-action@v2
with:
before-script: source /opt/tesseract/install/setup.bash
before-script: source /opt/tesseract/install/setup.bash && source /opt/trajopt/install/setup.bash
ccache-prefix: ${{ matrix.distro }}
vcs-file: dependencies_unstable.repos
upstream-args: --cmake-args -DCMAKE_BUILD_TYPE=Release
Expand Down
4 changes: 0 additions & 4 deletions dependencies.repos
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
local-name: ros_industrial_cmake_boilerplate
uri: https://github.com/ros-industrial/ros_industrial_cmake_boilerplate.git
version: 0.5.4
- git:
local-name: trajopt
uri: https://github.com/tesseract-robotics/trajopt.git
version: 0.7.0
- git:
local-name: descartes_light
uri: https://github.com/swri-robotics/descartes_light.git
Expand Down
4 changes: 0 additions & 4 deletions dependencies_unstable.repos
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
local-name: ros_industrial_cmake_boilerplate
uri: https://github.com/ros-industrial/ros_industrial_cmake_boilerplate.git
version: master
- git:
local-name: trajopt
uri: https://github.com/tesseract-robotics/trajopt.git
version: master
- git:
local-name: descartes_light
uri: https://github.com/swri-robotics/descartes_light.git
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG TAG
FROM ghcr.io/tesseract-robotics/tesseract:${TAG}
FROM ghcr.io/tesseract-robotics/trajopt:${TAG}

SHELL ["/bin/bash", "-c"]

Expand All @@ -26,6 +26,7 @@ RUN --mount=type=bind,target=${WORKSPACE_DIR}/src/tesseract_planning \
# Bind mount the source directory so as not to unnecessarily copy source code into the docker image
RUN --mount=type=bind,target=${WORKSPACE_DIR}/src/tesseract_planning \
source /opt/tesseract/install/setup.bash \
source /opt/trajopt/install/setup.bash \
&& cd ${WORKSPACE_DIR} \
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release \
&& rm -rf build log

0 comments on commit cd3abba

Please sign in to comment.