-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile_Turtlebot
32 lines (25 loc) · 1 KB
/
Dockerfile_Turtlebot
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
# Base using ros-noetic-ros-base
FROM ros:noetic-ros-base
# Update and install packages
RUN apt-get update && apt-get install --no-install-recommends -y
# Setup the 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 focal main" > /etc/apt/sources.list.d/ros1-latest.list
# Update and install packages again with new keys
RUN apt-get update && apt-get install --no-install-recommends -y
# Get Turtlebot 3 packages
RUN apt-get install ros-noetic-rosserial-arduino \
ros-noetic-turtlebot3-msgs \
ros-noetic-laser-proc \
ros-noetic-hls-lfcd-lds-driver \
ros-noetic-robot-state-publisher \
ros-noetic-joint-state-publisher \
ros-noetic-xacro \
ros-noetic-turtlebot3 -y
# Set environment variables
ENV TURTLEBOT3_MODEL=burger
# Start the environment
COPY entrypoint_turtlebot.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["bash"]