Last active
February 17, 2018 03:20
-
-
Save gavanderhoorn/28062c9ba78eed6cb098569a5b886896 to your computer and use it in GitHub Desktop.
Lunar on Artful Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:17.10 | |
ENV DEBIAN_FRONTEND=noninteractive | |
ENV LANG C.UTF-8 | |
ENV LC_ALL C.UTF-8 | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
build-essential \ | |
ca-certificates \ | |
dirmngr \ | |
gnupg \ | |
python-rosdep \ | |
python-rosinstall \ | |
python-rosinstall-generator \ | |
python-wstool \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN echo "deb http://packages.ros.org/ros/ubuntu artful main" > /etc/apt/sources.list.d/ros-latest.list \ | |
&& apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 \ | |
&& apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
shiboken2 \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
WORKDIR /ros_catkin_ws | |
RUN rosinstall_generator desktop_full --rosdistro lunar --deps --tar > lunar-desktop-full.rosinstall \ | |
&& wstool init -j8 src lunar-desktop-full.rosinstall | |
RUN apt-get update \ | |
&& rosdep init \ | |
&& rosdep update \ | |
&& rosdep install --from-paths src -i --rosdistro=lunar --os ubuntu:zesty -y --skip-keys="python-rosdep" \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN /ros_catkin_ws/src/catkin/bin/catkin_make_isolated \ | |
--install \ | |
--install-space /opt/ros/lunar \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
&& cd / \ | |
&& rm -rf /ros_catkin_ws | |
COPY ./ros_entrypoint.sh / | |
ENTRYPOINT ["/ros_entrypoint.sh"] | |
CMD ["bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment