-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
54 lines (48 loc) · 1.42 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
FROM ros:noetic AS ros_base
ENV DEBIAN_FRONTEND noninteractive
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> /root/.bashrc
########################
FROM ros_base AS ros_dev
RUN apt-get update && \
apt-get install -y --fix-missing \
ros-$ROS_DISTRO-desktop-full
RUN apt-get update
RUN apt-get install -y \
git \
x11vnc \
wget \
python3 \
python3-numpy \
unzip \
xvfb \
icewm \
tree \
dos2unix \
vim \
net-tools \
iputils-ping \
iproute2 \
iptables \
python3-catkin-tools \
tcpdump \
nano \
tmux
RUN cd /root && git clone https://github.com/kanaka/noVNC.git && \
cd noVNC/utils && git clone https://github.com/kanaka/websockify websockify
RUN cd /root && git clone https://github.com/gpakosz/.tmux && \
ln -s -f /root/.tmux/.tmux.conf /root/.tmux.conf && \
cp /root/.tmux/.tmux.conf.local /root/.tmux.conf.local && \
sed -i 's/xterm-color)/xterm-color|*-256color)/g' /root/.bashrc
ENV DISPLAY :1
ENV SCREEN 0
ENV SCREEN_SIZE 1280x768x24
COPY start_novnc.sh start_novnc.sh
# RUN vim start_novnc.sh +"set ff=unix" +wq
RUN dos2unix start_novnc.sh && chmod 0755 start_novnc.sh
WORKDIR /workspaces
##########################
FROM ros_base AS ros_mocap
RUN apt-get update && apt-get install -y ros-$ROS_DISTRO-mocap-optitrack
#############################
FROM ros_base AS ros_gmapping
RUN apt-get update && apt-get install -y ros-$ROS_DISTRO-gmapping