forked from EuropeanRoverChallenge/ERC-Remote-Navigation-Sim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 725 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 725 Bytes
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
FROM osrf/ros:melodic-desktop
# Install some tools
RUN apt-get update && apt-get -y upgrade && apt-get install -y \
python-rosdep \
python-catkin-tools \
python-vcstool \
&& rm -rf /var/lib/apt/lists/*
# Clone the source code
WORKDIR /sim_ws
COPY leo-erc.repos ./
RUN vcs import < leo-erc.repos
# Install dependencies
RUN apt-get update \
&& rosdep update \
&& rosdep install --from-paths src -iy \
&& rm -rf /var/lib/apt/lists/*
# Build the workspace
RUN catkin config --extend /opt/ros/melodic --install -i /opt/ros/leo-sim && catkin build
# Modify the entrypoint file
RUN sed -i "s|\$ROS_DISTRO|leo-sim|" /ros_entrypoint.sh
# Run launch file
CMD ["roslaunch", "leo_gazebo", "leo_marsyard.launch"]