-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathDockerfile
40 lines (32 loc) · 1010 Bytes
/
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
ARG BASE_IMAGE=dukerobotics/robosub-ros:core
FROM ${BASE_IMAGE}
### SSH Settings ###
# Set ssh to use port 2201
RUN echo "Port 2201" >> /etc/ssh/sshd_config
### Final Installs ###
# Update and install tools
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ros-noetic-geometry2\
ros-noetic-rviz \
ros-noetic-joy \
ros-noetic-image-view \
ros-noetic-image-publisher \
ros-noetic-rqt \
ros-noetic-rqt-image-view \
ros-noetic-rqt-bag \
ros-noetic-rqt-topic \
xsltproc \
xauth && \
apt-get clean && \
# Clear apt caches to reduce image size
rm -rf /var/lib/apt/lists/*
### Final Setup ###
# Add script to setup multiple machines for pool testing
COPY setup_network.bash /opt/ros/noetic/setup_network.bash
RUN chmod +x /opt/ros/noetic/setup_network.bash
# Set computer type
ENV COMPUTER_TYPE=landside
RUN echo "COMPUTER_TYPE=landside" >> /root/.ssh/environment
# Set working directory to codebase
WORKDIR /root/dev/robosub-ros