-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
64 lines (52 loc) · 2.08 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
60
61
62
63
64
FROM cmu-mars/base
# install Gazebo
RUN sudo apt-get update && \
sudo apt-get install -y ros-kinetic-gazebo-ros-pkgs \
ros-kinetic-gazebo-ros-control \
ros-kinetic-kobuki-gazebo \
apt-utils
# add the source code for the shared "notifications" module
RUN git clone https://github.com/cmu-mars/notifications-p15 \
--depth 1 \
src/notifications
# install shared "models" module
ENV MARS_MODELS_REVISION 5dd3542
RUN git clone https://github.com/cmu-mars/cp-models-p15 \
src/cp-models-p15 && \
cd src/cp-models-p15 && \
git checkout "${MARS_MODELS_REVISION}"
# install the navigation_msgs
ENV ROS_NAVIGATION_MSGS_VERSION 1.13.0
RUN wget -q "https://github.com/ros-planning/navigation_msgs/archive/${ROS_NAVIGATION_MSGS_VERSION}.tar.gz" && \
tar -xvf "${ROS_NAVIGATION_MSGS_VERSION}.tar.gz" && \
rm "${ROS_NAVIGATION_MSGS_VERSION}.tar.gz" && \
mv "navigation_msgs-${ROS_NAVIGATION_MSGS_VERSION}" navigation_msgs && \
rm navigation_msgs/README.md && \
mv navigation_msgs/* src && \
rm -rf navigation_msgs
# TODO: install gazebo_msgs
# TODO: install ig_action.msgs
ENV IG_ACTION_SERVER_REVISION b1f70a8
RUN git clone https://github.com/cmu-mars/ig-action-server-p15 \
src/ig-action-server && \
cd src/ig-action-server && \
git checkout "${IG_ACTION_SERVER_REVISION}"
ADD . src/brasscomms
RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" && \
catkin_make install
RUN sudo apt-get install -y python-requests \
python-flask
# CMD ["python src/brasscomms/src/brasscomms.py"]
ENV CP_GAZEBO_REVISION 421fade
RUN git clone https://github.com/cmu-mars/cp-gazebo-p15 \
src/cp-gazebo && \
cd src/cp-gazebo && \
git checkout "${CP_GAZEBO_REVISION}"
# TODO: tidy this up; use volume sharing!
# TODO: add config file (from LLStaging/installation/mockup.sh)
# create a log and data file
RUN sudo mkdir /test && \
sudo touch /test/log
ADD ex_config.json /test/data
RUN sudo chown -R $(whoami):$(whoami) /test
#RUN rosdep update