From 5ea2298782d646641310d4b737c95e868fe548eb Mon Sep 17 00:00:00 2001 From: Tim Kluge <timklge@gmail.com> Date: Tue, 1 Sep 2020 16:15:57 +0200 Subject: [PATCH] Do not prebuild wockerspace for docker, only source base ros --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 323d264..ac0c96a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,13 +13,14 @@ RUN apt-get update && apt-get install -y ros-melodic-desktop-full wget nano pyth RUN apt-get install -y \ ros-melodic-libfranka python-catkin-tools libeigen3-dev RUN apt-get install -y python-rosinstall python-rosinstall-generator python-wstool build-essential +RUN apt-get install vim -y RUN rosdep init && rosdep update RUN mkdir -p /root/ws_tmp /root/Desktop && ln -s /usr/share/applications/lxterminal.desktop /root/Desktop/lxterminal.desktop ENV ROS_DISTRO=melodic -RUN /bin/bash -c "echo -e 'source /root/Desktop/ros_ws/devel/setup.bash\n \ - umask 000\n \ +RUN /bin/bash -c "echo -e 'umask 000\n \ + source /opt/ros/melodic/setup.bash\n \ cd /root/Desktop/ros_ws/\n' >> /root/.bashrc " WORKDIR /root/ws_tmp @@ -30,7 +31,6 @@ COPY ./src /root/ws_tmp/src RUN apt-get update && rosdep install --from-paths . -r -y RUN catkin config \ - --extend /opt/ros/melodic && \ - catkin build + --extend /opt/ros/melodic ENV OPENBOX_ARGS --startup "/root/copyws.sh" VOLUME /root/Desktop/ros_ws -- GitLab