-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (49 loc) · 1.6 KB
/
Copy pathDockerfile
File metadata and controls
58 lines (49 loc) · 1.6 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM osrf/ros:humble-desktop
ENV DEBIAN_FRONTEND=noninteractive \
TERM=xterm-256color \
ROS_DISTRO=humble \
COLCON_WS=/workspace \
CMAKE_VERSION=3.31.3
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
git \
build-essential \
wget \
ninja-build \
clang \
clang-format \
clang-tidy \
python3-pip \
python3-rosdep \
python3-colcon-common-extensions \
python3-vcstool \
python3-argcomplete \
locales \
gosu \
sudo \
procps \
gstreamer1.0-tools \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
libgpiod-dev \
libopencv-dev \
ros-${ROS_DISTRO}-vision-opencv \
ros-${ROS_DISTRO}-gscam \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh \
&& chmod +x cmake-${CMAKE_VERSION}-linux-x86_64.sh \
&& ./cmake-${CMAKE_VERSION}-linux-x86_64.sh --skip-license --prefix=/usr/local \
&& rm cmake-${CMAKE_VERSION}-linux-x86_64.sh
RUN rosdep init || true && rosdep update
# Workspace skeleton
RUN mkdir -p ${COLCON_WS}/src
WORKDIR ${COLCON_WS}
RUN echo 'source /opt/ros/$ROS_DISTRO/setup.bash' >> /etc/bash.bashrc && \
echo 'if [ -f /workspace/install/setup.bash ]; then source /workspace/install/setup.bash; fi' >> /etc/bash.bashrc
COPY docker_entrypoint.sh /ros_entry.sh
RUN chmod +x /ros_entry.sh
ENTRYPOINT ["/ros_entry.sh"]
CMD ["bash"]