-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (36 loc) · 1.43 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
FROM osrf/ros:lunar-desktop-full-xenial
ARG VNC_PASSWORD=secret
ENV VNC_PASSWORD=${VNC_PASSWORD} \
HOME=/root \
DEBIAN_FRONTEND=noninteractive
RUN apt-get update; apt-get install -y \
mesa-utils \
dbus-x11 x11vnc xvfb supervisor \
dwm suckless-tools stterm \
ros-lunar-joy ros-lunar-octomap-ros ros-lunar-mavlink protobuf-compiler libgoogle-glog-dev ros-lunar-control-toolbox \
python-pip; \
pip2 install future; \
mkdir -p /etc/supervisor/conf.d; \
x11vnc -storepasswd $VNC_PASSWORD /etc/vncsecret; \
chmod 444 /etc/vncsecret; \
apt-get autoclean; \
apt-get autoremove; \
rm -rf /var/lib/apt/lists/*;
COPY supervisord.conf /etc/supervisor/conf.d
EXPOSE 5900
CMD ["/usr/bin/supervisord","-c","/etc/supervisor/conf.d/supervisord.conf"]
WORKDIR ${HOME}
# Build a workspace and include RotorS
RUN mkdir -p ${HOME}/catkin_ws/src; \
cd ${HOME}/catkin_ws/src; \
. /opt/ros/lunar/setup.sh; \
rosdep update; \
wstool init; \
curl -sLO https://raw.githubusercontent.com/ethz-asl/rotors_simulator/master/rotors_hil.rosinstall; \
wstool merge rotors_hil.rosinstall; \
wstool update; \
cd ${HOME}/catkin_ws; \
catkin_make_isolated;
## . ${HOME}/catkin_ws/devel/setup.sh;
## echo ". ${HOME}/catkin_ws/devel/setup.sh" >> ${HOME}/.bashrc;
####$ roslaunch rotors_gazebo mav_hovering_example.launch mav_name:=firefly world_name:=basic