-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 1.25 KB
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 1.25 KB
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
# This Dockerfile adds a catkin workspace to the
# kinetic-ros-robot image. The workspace is initialized
# at /catkin_ws.
#FROM ros:indigo-ros-base # ROS version for which this Dockerfile was originally prepared
FROM esteve/ros:kinetic-robot-armhf
MAINTAINER Bernardo Ronquillo
# Needed to suppress warning when installing g++:
# debconf: unable to initialize frontend: Dialog
# debconf: (TERM is not set, so the dialog frontend is not usable.)
# debconf: falling back to frontend: Readline
# ...
ENV DEBIAN_FRONTEND noninteractive
# Set editor when editing files with ROS
RUN apt-get update ; apt-get install -y nano
RUN /bin/bash -c "echo 'export EDITOR=nano' >> ~/.bashrc"
# Serial module required to access serial or USB devices
RUN apt-get install python-serial
# add environment setup
RUN /bin/bash -c "echo 'source /opt/ros/kinetic/setup.bash' >> ~/.bashrc"
# Setup catkin workspace
RUN /bin/bash -c "source /opt/ros/kinetic/setup.bash && \
mkdir -p ~/catkin_ws/src && \
cd ~/catkin_ws/src && \
catkin_init_workspace && \
cd ~/catkin_ws/ && \
catkin_make && \
echo 'source ~/catkin_ws/devel/setup.bash' >> ~/.bashrc"
RUN bin/bash -c "source ~/.bashrc"