forked from carrotFoxx/HTCvive-ROS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (37 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
47 lines (37 loc) · 1.06 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ros:noetic
SHELL ["/bin/bash", "-c", "-e"]
CMD ["--privileged", "command_to_run"]
ENV CMAKE_PREFIX_PATH=/opt/ros/ros-$VERSION:$CMAKE_PREFIX_PATH
ENV DEBIAN_FRONTEND=noninteractive
COPY scripts /root/scripts
COPY .config /root/.config
WORKDIR /root
RUN apt update -q && \
apt install \
udev \
wget \
git \
usbutils \
ros-noetic-image-transport \
ros-noetic-cv-bridge \
ros-noetic-tf \
libglew-dev \
screen -y &&\
apt autoclean -y && apt-get autoremove -y && apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN cd ~ && \
mkdir libraries && \
cd libraries && \
git clone https://github.com/ValveSoftware/openvr.git -b v1.3.22 && \
cd openvr && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release ../ && \
make
RUN mkdir /root/catkin_ws && mkdir /root/catkin_ws/src && \
cd /root/catkin_ws/src && \
git clone https://github.com/robosavvy/vive_ros && \
source /opt/ros/noetic/setup.bash && \
cd /root/catkin_ws && \
catkin_make
CMD /root/scripts/entrypoint.sh