From 077ff6a0c4be577e2043c2ef603adcc797648d8b Mon Sep 17 00:00:00 2001 From: Alex Davies Date: Tue, 17 Sep 2024 12:14:34 -0300 Subject: [PATCH] We now source /opt/ros/noetic automatically --- src/Dockerfile.jinja | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Dockerfile.jinja b/src/Dockerfile.jinja index 6f724b3..9f51ce7 100644 --- a/src/Dockerfile.jinja +++ b/src/Dockerfile.jinja @@ -1,10 +1,10 @@ # Stage 1: Build Stage FROM git.spirirobotics.com/spiri/services-ros1-core:main AS builder -RUN apt-get update --yes && apt-get install --yes git build-essential - # ros-noetic-cv-bridge \ - # ros-noetic-vision-opencv \ - # ros-noetic-image-transport +#We need to make sure to source the ROS environment in our dockerfile +SHELL ["/bin/bash", "-c"] + +RUN apt-get update --yes && apt-get install --yes git build-essential RUN apt-get install --yes python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential @@ -31,4 +31,3 @@ HEALTHCHECK {{HEALTHCHECK}} # Command to run your application CMD {{RUN_COMMAND}} -