-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (22 loc) · 835 Bytes
/
Dockerfile
File metadata and controls
24 lines (22 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
##pull###
FROM osrf/ros:kinetic-desktop-full
##ros setup##
SHELL ["/bin/bash", "-c"]
RUN apt update
RUN apt install ros-kinetic-pcl-ros ##ros-kinetic-***
WORKDIR /root
RUN mkdir -p catkin_ws/src
RUN cd catkin_ws/src && source /opt/ros/kinetic/setup.bash; catkin_init_workspace
RUN cd catkin_ws && source /opt/ros/kinetic/setup.bash; catkin_make
RUN cd /root && echo source /root/catkin_ws/devel/setup.bash >> .bashrc
ENV ROS_PACKAGE_PATH=/root/catkin_ws:$ROS_PACKAGE_PATH
ENV ROS_WORKSPACE=/root/catkin_ws
WORKDIR /root/catkin_ws
RUN cd src/ && git clone --recursive https://github.com/kiyoshiiriemon/little_slam
RUN source /opt/ros/kinetic/setup.bash && catkin_make
ENV ROS_PACKAGE_PATH=/root/catkin_ws:/opt/ros/kinetic/share:$ROS_PACKAGE_PATH
## install tmux##
WORKDIR /root
RUN apt install -y tmux
##init position##
WORKDIR /root