Skip to content

Commit

Permalink
docker: select if jsk-pcl-ros is installed (to reduce size in ci)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroIshida committed Nov 15, 2023
1 parent 5fab92b commit c18a765
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ARG INSTALL_JSK_PCL=true
FROM nvidia/cuda:11.2.2-devel-ubuntu20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN rm /etc/apt/sources.list.d/cuda.list
Expand Down Expand Up @@ -64,8 +65,10 @@ RUN apt update && apt install python3-osrf-pycommon python3-catkin-tools python3
RUN apt update && apt install ros-noetic-jsk-tools -y
RUN apt update && apt install ros-noetic-image-transport-plugins -y

# install launch/sample_detection.launch dependencies
RUN apt update && apt install ros-noetic-jsk-pcl-ros ros-noetic-jsk-pcl-ros-utils -y
# install launch/sample_detection.launch dependencies if you work with point clouds
RUN if [ "$INSTALL_ROS_JSK" = "true" ]; then \
apt-get update && apt-get install -y ros-noetic-jsk-pcl-ros ros-noetic-jsk-pcl-ros-utils; \
fi

WORKDIR /home/user

Expand Down

0 comments on commit c18a765

Please sign in to comment.