diff --git a/docker/Dockerfile b/docker/Dockerfile index a9dfbf492..988b57795 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -8,19 +8,18 @@ ENV DEBIAN_FRONTEND noninteractive USER root # Install Python dependencies -RUN python3 -m pip install open3d pyquaternion +RUN python3 -m pip install open3d pyquaternion --upgrade # Bind mount the source directory so as not to unnecessarily copy source code into the docker image ARG WORKSPACE_DIR=/opt/snp RUN --mount=type=bind,target=${WORKSPACE_DIR}/src/snp \ - source /opt/tesseract_ros2/install/setup.bash \ + apt update -y -qq \ + && source /opt/tesseract_ros2/install/setup.bash \ && vcs import ${WORKSPACE_DIR}/src < ${WORKSPACE_DIR}/src/snp/dependencies.repos --shallow \ && rosdep install \ --from-paths ${WORKSPACE_DIR}/src \ -iry \ - --skip-keys libvtk \ - && apt install -y \ - libxmlrpcpp-dev + --skip-keys libvtk # Build the repository # Bind mount the source directory so as not to unnecessarily copy source code into the docker image diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f4ddad7ba..097ad5206 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -12,14 +12,17 @@ services: NVIDIA_DRIVER_CAPABILITIES: all ROS_LOG_DIR: /tmp container_name: snp - image: ghcr.io/ros-industrial-consortium/scan_n_plan_workshop:humble-latest + image: ghcr.io/ros-industrial-consortium/scan_n_plan_workshop:humble-master stdin_open: true tty: true network_mode: host + privileged: true user: ${CURRENT_UID} # CURRENT_UID=$(id -u):$(id -g) volumes: - /tmp/.X11-unix:/tmp/.X11-unix - /etc/hosts:/etc/hosts + - /etc/passwd:/etc/passwd:ro + - /etc/group:/etc/group:ro deploy: resources: reservations: