-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (40 loc) · 1.54 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
FROM osrf/ros:humble-desktop-full
# install ubuntu packages
RUN apt update && apt install -y \
chrony \
curl \
git \
sudo \
ssh \
tmux \
vim \
xterm \
wget \
lsb-release \
gnupg
# add gazebo 11 sources (Gazebo Classic, NOT Ignition/Garden)
RUN sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
RUN wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
# install ros packages
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
gazebo \
libgazebo-dev\
ros-humble-turtlebot3 \
ros-humble-turtlebot3-msgs \
ros-humble-turtlebot3-simulations \
python3-pip \
ros-humble-navigation2 \
ros-humble-nav2-bringup
# Downgrade setuptools because ROS
# (Basically, this image was built for Humble, which uses a newer version of Python and yet they have not updated the way that they build Python nodes)
RUN pip3 install setuptools==58.2.0 shapely
ENV HOME /home/mines
WORKDIR "/home/mines/mines_ws"
ENV DISPLAY=host.docker.internal:0.0
# Copy in the bashrc file for convenience functions
# COPY .bashrc /home/mines/.bashrc
# Since the workdir is already set to the volume with repo files, no need to copy those in.
# Just build the workspace
RUN /bin/bash -c "source /opt/ros/humble/setup.bash && \
colcon build --symlink-install"
CMD ["/bin/bash"]