From 784d668be94cdc361f9bcad415de5a9e05e07030 Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Mon, 17 Apr 2023 08:57:48 +0200 Subject: [PATCH] Update dockerfile.amd64 --- dockerfile.amd64 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dockerfile.amd64 b/dockerfile.amd64 index 88705e9..efa3c58 100644 --- a/dockerfile.amd64 +++ b/dockerfile.amd64 @@ -42,11 +42,17 @@ RUN git clone https://github.com/bjoernellens1/segwayrmp -b x86 # Build the workspace +WORKDIR /home/ros/workspace RUN . /opt/ros/humble/setup.sh && \ colcon build + # Set the entrypoint to the workspace and run the shell -ENTRYPOINT ["/bin/bash", "-c", ". /opt/ros/humble/setup.sh && . install/setup.sh && cd src && /bin/bash"] +#ENTRYPOINT ["/bin/bash", "-c", ". /opt/ros/humble/setup.sh && . install/setup.sh && /bin/bash"] + +# Set up the ROS environment +RUN echo "source /opt/ros/humble/setup.bash" >> /home/ros/.bashrc && \ + echo "source /home/ros/workspace/install/setup.bash" >> /home/ros/.bashrc # Set the default command to start a new shell in the workspace CMD ["/bin/bash"]