Skip to content
Snippets Groups Projects
Commit e06f7cae authored by Tim Kluge's avatar Tim Kluge
Browse files

Add volume for workspace

parent eda1267e
No related branches found
No related tags found
No related merge requests found
...@@ -3,14 +3,17 @@ FROM fbottarel/ros-desktop-full-vnc:melodic ...@@ -3,14 +3,17 @@ FROM fbottarel/ros-desktop-full-vnc:melodic
RUN apt-get update && apt-get dist-upgrade -y RUN apt-get update && apt-get dist-upgrade -y
RUN apt-get install -y \ RUN apt-get install -y \
ros-melodic-libfranka python-catkin-tools libeigen3-dev ros-melodic-libfranka python-catkin-tools libeigen3-dev
#WORKDIR /src/
COPY ./vnc/simple_simulation.sh /root/Desktop/ COPY ./vnc/simple_simulation.sh /root/Desktop/
RUN ln -s /usr/share/applications/lxterminal.desktop /root/Desktop/lxterminal.desktop RUN ln -s /usr/share/applications/lxterminal.desktop /root/Desktop/lxterminal.desktop
RUN chmod a+x /root/Desktop/simple_simulation.sh && mkdir /root/Desktop/ros_ws RUN chmod a+x /root/Desktop/simple_simulation.sh && mkdir /root/ws_tmp
ENV ROS_DISTRO=melodic ENV ROS_DISTRO=melodic
WORKDIR /root/Desktop/ros_ws WORKDIR /root/ws_tmp
COPY ./src /root/Desktop/ros_ws/src COPY vnc/copyws.sh /root/copyws.sh
RUN chmod a+x /root/copyws.sh
COPY ./src /root/ws_tmp/src
RUN apt-get update && rosdep install --from-paths . -r -y && apt-get clean RUN apt-get update && rosdep install --from-paths . -r -y && apt-get clean
RUN catkin config \ RUN catkin config \
--extend /opt/ros/melodic && \ --extend /opt/ros/melodic && \
catkin build catkin build
\ No newline at end of file ENV OPENBOX_ARGS --startup "/root/copyws.sh"
VOLUME /root/Desktop/ros_ws
#!/bin/sh
if [ -z "$(ls -A /root/Desktop/ros_ws)" ]; then
echo "Copying workspace..."
cp /root/ws_tmp/* /root/Desktop/ros_ws -r
chmod a+rwx /root/Desktop/ros_ws/* -R
fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment