-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
61 lines (50 loc) · 1.67 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
FROM ros:humble-ros-base-jammy
# Set up timezone
ENV TZ=Etc/UTC
RUN echo $TZ > /etc/timezone && \
ln -fs /usr/share/zoneinfo/$TZ /etc/localtime
# Install required utilities
RUN apt update \
&& apt install -y --no-install-recommends \
build-essential \
cmake \
git \
gnupg2 \
lsb-release \
nano \
python3-dbg \
python3-setuptools \
python3-vcstool \
ruby \
sudo \
wget \
&& rm -rf /var/lib/apt/lists/* \
&& apt clean -qq
# Set up locale
RUN sudo apt update && sudo apt install locales \
&& sudo locale-gen en_US en_US.UTF-8 \
&& sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
ARG ROSDIST=humble
ARG GZDIST=garden
ENV GZ_VERSION garden
# Set up repo to install Ignition
RUN /bin/sh -c 'wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg' \
&& /bin/sh -c 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null'
# Install Gazebo (needed for message imports with ros-humble-ros-gzgarden)
RUN apt update \
&& apt install -y --no-install-recommends \
gz-${GZDIST} \
&& rm -rf /var/lib/apt/lists/* \
&& apt clean -qq
# Install example ROS package
RUN apt update \
&& apt install -y --no-install-recommends \
ros-${ROSDIST}-actuator-msgs \
ros-${ROSDIST}-ros-gzgarden \
&& rm -rf /var/lib/apt/lists/* \
&& apt clean -qq
# Copy over script to Docker container
COPY ./run_my_system.bash /
# Use your ros_entrypoint
COPY ./ros_entrypoint.sh /
COPY ./wamv_demo.py /