Update dockerfile.arm64

This commit is contained in:
bjoernellens1 2023-04-17 08:56:28 +02:00 committed by GitHub
parent 3a5b75ab58
commit eff4f86d7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,11 +44,18 @@ RUN git clone https://github.com/bjoernellens1/segwayrmp -b humble-arm64
# Build the workspace # Build the workspace
WORKDIR /home/ros/workspace
RUN . /opt/ros/humble/setup.sh && \ RUN . /opt/ros/humble/setup.sh && \
colcon build colcon build
#WORKDIR /home/ros/workspace
# 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 entrypoint to the workspace and run the shell # 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.bash && cd /home/ros/workspace && source /home/ros/workspace/install/setup.bash && /bin/bash"]
# Set the default command to start a new shell in the workspace # Set the default command to start a new shell in the workspace
CMD ["/bin/bash"] CMD ["/bin/bash"]