This repository has been archived by the owner on Sep 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
86 lines (73 loc) · 2.31 KB
/
Dockerfile
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
FROM ubuntu:14.04
# Set workdir
WORKDIR /root/
# Add repo for CMake 3
RUN apt update
RUN apt install -y software-properties-common
RUN add-apt-repository -y ppa:george-edison55/cmake-3.x
# Install tools
RUN apt update
RUN apt -y upgrade
RUN apt install -y git cmake build-essential libboost-all-dev libusb-1.0-0-dev libopencv-dev wget
# Install libfunctionality
RUN git clone https://github.com/OSVR/libfunctionality.git
RUN mkdir libfunctionality/build
WORKDIR /root/libfunctionality/build
RUN cmake ..
RUN make
RUN make install
WORKDIR /root/
# Install jsoncpp
RUN git clone https://github.com/vrpn/jsoncpp.git
RUN mkdir -p jsoncpp/build/release
WORKDIR /root/jsoncpp/build/release
RUN cmake -DCMAKE_BUILD_TYPE=release -DBUILD_STATIC_LIBS=OFF -DBUILD_SHARED_LIBS=ON -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ../..
RUN make
RUN make install
WORKDIR /root/
# Install OSVR-Core
RUN git clone --recurse-submodules https://github.com/OSVR/OSVR-Core.git
RUN mkdir OSVR-Core/build
WORKDIR /root/OSVR-Core/build
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
#RUN cmake .. -DCMAKE_INSTALL_PREFIX=~/osvr
RUN make
RUN make install
WORKDIR /root/
# Install EMPY
RUN wget http://www.alcyone.com/software/empy/empy-3.3.3.tar.gz
RUN tar -xf empy-3.3.3.tar.gz
WORKDIR empy-3.3.3
RUN python setup.py install
WORKDIR /root/
# Add ROS repository & install tools
RUN echo "deb http://packages.ros.org/ros/ubuntu quantal main" > /etc/apt/sources.list.d/ros-latest.list
RUN wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
RUN apt update
RUN apt install -y python-catkin-pkg python-empy python-nose python-setuptools libgtest-dev
# Install catkin
RUN git clone https://github.com/ros/catkin.git
RUN mkdir catkin/build
WORKDIR /root/catkin/build
RUN cmake ..
RUN make
RUN make install
WORKDIR /root/
# Install serial
RUN git clone https://github.com/wjwwood/serial.git
WORKDIR /root/serial
RUN make
RUN make install
RUN cp -r /tmp/usr/local/ /usr
WORKDIR /root/
# Get the Relativ OSVR plugin
RUN git clone https://github.com/Xobtah/relativ-osvr-plugin
RUN mkdir relativ-osvr-plugin/relativ_osvr_plugin/build
WORKDIR /root/relativ-osvr-plugin/relativ_osvr_plugin/build
RUN cmake ..
RUN make
WORKDIR /root/
# Install the Relativ plugin
RUN cp -r /root/relativ-osvr-plugin/relativ_osvr_plugin/build/lib /usr
# Start OSVR
CMD osvr_server