-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (34 loc) · 1.04 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
FROM osrf/ros:indigo-desktop-trusty
# install ros packages
RUN apt-get update && apt-get install -y \
ros-indigo-desktop-full=1.1.6-0* \
&& rm -rf /var/lib/apt/lists/*
# install rsbb dependencies
RUN apt-get update && apt-get install -q -y \
build-essential \
cmake \
libboost-all-dev \
libprotoc-dev \
protobuf-compiler \
libssl-dev \
ros-$ROS_DISTRO-map-server
RUN easy_install python-Levenshtein
# setup catkin workspace
RUN mkdir -p /catkin_ws/src
WORKDIR /catkin_ws
RUN /bin/bash -c "source /opt/ros/indigo/setup.bash; \
catkin_make"
# download and build rsbb
WORKDIR /refbox/catkin_ws/src
RUN git clone https://github.com/rockin-robot-challenge/rsbb.git
RUN cd rsbb/ && git pull && git submodule update --init
WORKDIR /refbox/catkin_ws/
# ports for ssh, standard http and rsbb
EXPOSE 23 80 6666
RUN /bin/bash -c "source /opt/ros/indigo/setup.bash; \
catkin_make; \
source $(pwd)/devel/setup.bash;"
COPY ./rsbb-entrypoint.sh /
RUN chmod +x /rsbb-entrypoint.sh
ENTRYPOINT ["/rsbb-entrypoint.sh"]
CMD ["bash"]