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

Update Dockerfile: Add umask, fix home dir

parent 488988e8
No related branches found
No related tags found
No related merge requests found
FROM fbottarel/ros-desktop-full-vnc:melodic
FROM dorowu/ubuntu-desktop-lxde-vnc:bionic
RUN apt-get update && apt-get dist-upgrade -y
# Fix dirmngr
RUN apt-get purge dirmngr -y && apt-get update && apt-get install dirmngr -y
RUN apt-get dist-upgrade -y
# Adding keys for ROS
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
RUN apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
# Installing ROS
RUN apt-get update && apt-get install -y ros-melodic-desktop-full wget nano python-rosdep
RUN apt-get install -y \
ros-melodic-libfranka python-catkin-tools libeigen3-dev
COPY ./vnc/simple_simulation.sh /root/Desktop/
RUN ln -s /usr/share/applications/lxterminal.desktop /root/Desktop/lxterminal.desktop
RUN chmod a+x /root/Desktop/simple_simulation.sh && mkdir /root/ws_tmp
RUN apt-get install -y python-rosinstall python-rosinstall-generator python-wstool build-essential
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 \
cd /root/Desktop/ros_ws/\n' >> /root/.bashrc "
WORKDIR /root/ws_tmp
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
RUN catkin config \
--extend /opt/ros/melodic && \
catkin build
......
#!/bin/bash
source /root/Desktop/ros_ws/devel/setup.bash
lxterminal --command "roslaunch sample_applications simple_simulation.launch"
\ 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