mirror of
https://github.com/bjoernellens1/ros2_docker_template.git
synced 2024-11-23 15:55:05 +00:00
Update my_example.Dockerfile
This commit is contained in:
parent
de6a30cd8b
commit
ec5394c0d0
@ -12,8 +12,8 @@ FROM osrf/ros:${ROS_DISTRO}-desktop as base
|
|||||||
SHELL ["/bin/bash", "-c"] # change shell to bash because of better compatibility (standard shell would be sh otherwise).
|
SHELL ["/bin/bash", "-c"] # change shell to bash because of better compatibility (standard shell would be sh otherwise).
|
||||||
|
|
||||||
# Create Colcon workspace with external dependencies
|
# Create Colcon workspace with external dependencies
|
||||||
RUN mkdir -p /${UNDERLAY_WS}/src
|
RUN mkdir -p ${UNDERLAY_WS}/src
|
||||||
WORKDIR /${UNDERLAY_WS}/src
|
WORKDIR ${UNDERLAY_WS}/src
|
||||||
COPY my.repos .
|
COPY my.repos .
|
||||||
RUN mv my.repos dependencies.repos
|
RUN mv my.repos dependencies.repos
|
||||||
RUN vcs import < dependencies.repos
|
RUN vcs import < dependencies.repos
|
||||||
@ -63,7 +63,7 @@ RUN source ${UNDERLAY_WS}/install/setup.bash \
|
|||||||
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \
|
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN source /rmp_ws/install/setup.bash \
|
RUN source ${UNDERLAY_WS}/install/setup.bash \
|
||||||
&& colcon build --symlink-install
|
&& colcon build --symlink-install
|
||||||
|
|
||||||
# Set up the entrypoint
|
# Set up the entrypoint
|
||||||
|
Loading…
Reference in New Issue
Block a user