-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
63 lines (48 loc) · 1.91 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
55
56
57
58
59
60
61
62
63
ARG L4T_IMG_TAG=r32.4.2
FROM nvcr.io/nvidia/l4t-base:${L4T_IMG_TAG}
# Highly inspired on
# https://github.com/osrf/docker_images/blob/0b33e61b5bbed5b93b9fba2d5bae5db604ff9b58/ros/melodic/ubuntu/bionic/ros-core/Dockerfile
# https://github.com/osrf/docker_images/blob/0b33e61b5bbed5b93b9fba2d5bae5db604ff9b58/ros/melodic/ubuntu/bionic/ros-base/Dockerfile
# https://github.com/osrf/docker_images/blob/7ff09c2a75e902bc2bb25a1f1ae748ec4e9c7a4b/ros/melodic/ubuntu/bionic/robot/Dockerfile
ARG BUILD_DATE
ARG VERSION
ARG TARGET_ROS_META_PACKAGE=robot
LABEL maintainer="[email protected]"
LABEL net.etsmtl.sonia-auv.base_img.build-date=${BUILD_DATE}
LABEL net.etsmtl.sonia-auv.base_img.version=${VERSION}
# System Specific
ENV DEBIAN_FRONTEND=noninteractive
# ROS Specific
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
ENV ROS_DISTRO=melodic
# ROS Install Start
# setup timezone
RUN echo 'Etc/UTC' > /etc/timezone && \
ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
apt-get update && \
apt-get install -q -y --no-install-recommends tzdata && \
rm -rf /var/lib/apt/lists/*
# Setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
# Setup sources.list
RUN echo "deb http://packages.ros.org/ros/ubuntu bionic main" > /etc/apt/sources.list.d/ros1-latest.list
# Install bootstrap tools
RUN apt-get update && apt-get install --no-install-recommends -y \
dirmngr \
gnupg2 \
build-essential \
python-rosdep \
python-rosinstall \
python-vcstools \
&& rosdep init \
&& rosdep update --rosdistro ${ROS_DISTRO} \
&& rm -rf /var/lib/apt/lists/*
# Install ROS packages
RUN apt-get update && apt-get install -y --no-install-recommends \
ros-melodic-ros-base=1.4.1-0* \
ros-melodic-${TARGET_ROS_META_PACKAGE}=1.4.1-0* \
&& rm -rf /var/lib/apt/lists/*
COPY scripts/ros_entrypoint.sh /
ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]