-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (47 loc) · 1.46 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM ros:kinetic
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
wget \
libopencv-dev \
python-catkin-tools \
build-essential \
cmake \
python-pip \
ros-kinetic-rviz \
ros-kinetic-pcl-ros \
ros-kinetic-tf-conversions \
libsdl1.2-dev \
libsdl-image1.2-dev \
python-rosdep \
libgl1-mesa-glx \
libgl1-mesa-dri \
mesa-utils \
libx11-dev \
libxrender-dev \
libxtst-dev \
libxi-dev \
libglu1-mesa \
libegl1-mesa && \
rm -rf /var/lib/apt/lists/*
RUN if [ ! -f /etc/ros/rosdep/sources.list.d/20-default.list ]; then \
rosdep init; \
fi && \
rosdep update
ENV CATKIN_WS=/root/catkin_ws
RUN mkdir -p $CATKIN_WS/src
RUN git clone https://github.com/adithom/mpl_ros.git $CATKIN_WS/src/mpl_ros
WORKDIR $CATKIN_WS
RUN git clone https://github.com/catkin/catkin_simple.git src/catkin_simple
RUN apt-get update && \
rosdep update && \
rosdep install --from-paths src --ignore-src -r -y && \
rm -rf /var/lib/apt/lists/*
RUN /bin/bash -c "source /opt/ros/kinetic/setup.bash && \
cd $CATKIN_WS && \
catkin init && \
catkin config -DCMAKE_BUILD_TYPE=Release && \
catkin build -j1"
RUN echo "source /opt/ros/kinetic/setup.bash && source /root/catkin_ws/devel/setup.bash" >> /root/.bashrc
ENTRYPOINT ["/bin/bash"]