-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (22 loc) · 1.21 KB
/
Dockerfile
File metadata and controls
26 lines (22 loc) · 1.21 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
# pull container from https://hub.docker.com/_/ros, choosing the melodic-robot-bionic version
FROM ros:melodic-robot-bionic
# install dependencies for the F1Tenth simulator and wget (and now pip)
RUN sudo apt-get update
RUN sudo apt-get -y install ros-melodic-ackermann-msgs ros-melodic-tf2-geometry-msgs ros-melodic-interactive-markers ros-melodic-cv-bridge ros-melodic-image-transport ros-melodic-rviz ros-melodic-joy ros-melodic-map-server wget vim python3-pip
# switch to bash for running commands
# mightn't be necessary
RUN pip3 install -U pip
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# initialise ROS, pull useful scripts from our repo and clone the F1Tenth simulator into a new catkin workspace
RUN source /ros_entrypoint.sh && \
source /opt/ros/melodic/setup.bash && \
git clone https://github.com/FT-Autonomous/f1tenth-ros-setup.git && \
mv f1tenth-ros-setup/utils /utils && \
rm -rf f1tenth-ros-setup && \
mkdir -p f1tenth_workspace/src && \
cd f1tenth_workspace/src && \
git clone https://github.com/f1tenth/f1tenth_simulator.git && \
cd f1tenth_simulator/maps && \
git init && \
git remote add racetracks https://github.com/f1tenth/f1tenth_racetracks && \
git pull racetracks main