-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuuvsim.Dockerfile
More file actions
32 lines (22 loc) · 966 Bytes
/
uuvsim.Dockerfile
File metadata and controls
32 lines (22 loc) · 966 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
29
30
31
32
ARG ROS_DISTRO=melodic
FROM ros:${ROS_DISTRO}
ARG DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && apt-get install --no-install-recommends -y \
git \
nvidia-driver-470 \
ros-melodic-nav-core \
ros-melodic-cv-bridge \
ros-melodic-tf2-geometry-msgs \
ros-melodic-rviz \
&& rm -rf /var/lib/apt/lists/*
# RUN mkdir -p catkin_ws/src && \
# git clone "https://github.com/ivanacollg/uuv_simulator.git" "catkin_ws/src/uuv_simulator" --branch feature_sim_rov
COPY package_xml_batch catkin_ws/src
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
rosdep install -iy --from-paths "catkin_ws/src/uuv_simulator" \
&& rm -rf /var/lib/apt/lists/*
COPY uuv_simulator catkin_ws/src
RUN /ros_entrypoint.sh catkin_make --directory catkin_ws
RUN sed -i "$(wc -l < /ros_entrypoint.sh)i\\source \"/catkin_ws/devel/setup.bash\"\\" /ros_entrypoint.sh
ENTRYPOINT [ "/ros_entrypoint.sh" ]