Skip to content

Commit

Permalink
ci: keep launch files in container to invoke rostest from outside
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroIshida committed Jan 9, 2024
1 parent 97ee892 commit 78aa330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
push: false
tags: detic_ros:latest
build_args: INSTALL_JSK_PCL=false
build_args: REMOVE_LAUNCH_DIR=false
- name: rostest
run: |
docker run --rm detic_ros:latest /bin/bash -i -c "source ~/.bashrc; rostest detic_ros test_node.test"
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM nvidia/cuda:11.2.2-runtime-ubuntu20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN rm /etc/apt/sources.list.d/cuda.list
# this arg is maybe set to false for testing purpose (e.g. invoke default launch files from rostest)
ARG REMOVE_LAUNCH_DIR=true

RUN echo 'Etc/UTC' > /etc/timezone && \
ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
Expand Down Expand Up @@ -98,7 +100,9 @@ RUN cd ~/detic_ws/src &&\
cd ~/detic_ws && catkin init && catkin build

# to avoid conflcit when mounting
RUN rm -rf ~/detic_ws/src/detic_ros/launch
RUN if [ "$REMOVE_LAUNCH_DIR" = "true" ] ; then \
rm -rf ~/detic_ws/src/detic_ros/launch ; \
fi

########################################
########### ENV VARIABLE STUFF #########
Expand Down

0 comments on commit 78aa330

Please sign in to comment.