-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
36 lines (28 loc) · 1.42 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
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
ENV USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends ubuntu-desktop && \
apt-get install -y gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal && \
apt-get install -y tightvncserver && \
apt-get install -y wget && \
apt-get install -y tar && \
mkdir /root/.vnc
# Install Choregraphe Suite 2.5.5.5
RUN wget -P /root/ https://developer.softbankrobotics.com/Software/Choregraphe/2.5.5/Linux/choregraphe-suite-2.5.5.5-linux64-setup.run
RUN chmod +x /root/choregraphe-suite-2.5.5.5-linux64-setup.run
RUN /root/choregraphe-suite-2.5.5.5-linux64-setup.run --mode unattended --installdir /opt/Aldebaran --licenseKeyMode evaluation
RUN rm /root/choregraphe-suite-2.5.5.5-linux64-setup.run
# Install pynaoqi 2.5.5.5 library
RUN wget -P /root/ https://developer.softbankrobotics.com/Software/Python/2.5.5/Linux/pynaoqi-python2.7-2.5.5.5-linux64.tar.gz
RUN tar -xvzf /root/pynaoqi-python2.7-2.5.5.5-linux64.tar.gz -C /root/
RUN rm /root/pynaoqi-python2.7-2.5.5.5-linux64.tar.gz
ENV PYTHONPATH /root/pynaoqi-python2.7-2.5.5.5-linux64/lib/python2.7/site-packages
ENV LD_LIBRARY_PATH /opt/Aldebaran/lib/
# Setup VNC
ADD xstartup /root/.vnc/xstartup
ADD passwd /root/.vnc/passwd
RUN chmod 600 /root/.vnc/passwd
RUN chmod 755 /root/.vnc/xstartup
CMD /usr/bin/vncserver :1 -geometry 1600x900 -depth 24 && tail -f /root/.vnc/*:1.log
EXPOSE 5901