-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (22 loc) · 900 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
FROM ripl/libbot2:latest
# set Ubuntu codename
# ENV UBUNTU_DISTRIB_CODENAME "focal"
# set ROS codename
#ENV ROS_DISTRO "kinetic"
ENV ROS_DISTRO "noetic"
# set default ROS master hostname
ENV ROS_MASTER_HOST "localhost"
RUN apt update && apt install -y curl
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add -
ENV DEBIAN_FRONTEND=noninteractive
# update apt lists and install system libraries, then clean the apt cache
RUN apt update && apt install -y \
ros-$ROS_DISTRO-desktop \
# clean the apt cache
&& rm -rf /var/lib/apt/lists/*
# source ROS
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /etc/bash.bashrc
# copy and set entrypoint
COPY assets/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]