-
Notifications
You must be signed in to change notification settings - Fork 6
/
ros-base:hydro.dockerfile
40 lines (31 loc) · 1.13 KB
/
ros-base:hydro.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
FROM ubuntu:12.04
MAINTAINER Jesse Clark <[email protected]>
# Register ROS repository
RUN apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116 && \
echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list && \
echo "deb-src http://packages.ros.org/ros/ubuntu precise main" >> /etc/apt/sources.list.d/ros-latest.list
ENV ROS_DISTRO hydro
# Install ROS base and rosinstall
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
nano \
python-pip \
python-rosinstall \
ros-${ROS_DISTRO}-ros-base
# Install goodies
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
ros-${ROS_DISTRO}-common-tutorials \
ros-${ROS_DISTRO}-rospy-tutorials \
ros-${ROS_DISTRO}-rosbridge-server
RUN rosdep init
# Setup ROS environment globally
RUN echo 'source /opt/ros/${ROS_DISTRO}/setup.bash' >> /etc/bash.bashrc
# Create nonprivileged user to run rosdep
RUN useradd --create-home --shell=/bin/bash rosuser
USER rosuser
RUN rosdep update
ENV TERM xterm-color
ENV EDITOR nano -wi
# Publish roscore and rosbridge port
EXPOSE 11311
EXPOSE 9090