-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
46 lines (36 loc) · 1.55 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
FROM ubuntu:16.04
RUN \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -qy ca-certificates build-essential pkg-config \
software-properties-common \
dpkg-dev build-essential curl wget vim unzip zip
# install java
RUN \
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer
# provide a random env better suited for headless work such as docker images
# http://www.labouisse.com/misc/2014/06/19/tomcat-startup-time-surprises/
ENV JAVA_OPTS -Djava.security.egd=file:/dev/./urandom
# Install vnc, xvfb in order to create a 'fake' display
RUN \
apt-get install -y x11vnc xvfb xinit && \
mkdir ~/.vnc && \
x11vnc -storepasswd 1234 ~/.vnc/passwd
RUN mkdir -p /data/coma
WORKDIR /data/coma
RUN cd /tmp && wget -O /tmp/coma.zip http://downloads.sourceforge.net/project/coma-ce/coma%203.0%20ce%20v3.zip?use_mirror=netcologne
RUN unzip -d /tmp /tmp/coma.zip
RUN cp -r /tmp/coma\ 3.0\ ce\ v3/* /data/coma/
Run rm -rf /tmp/coma*
ADD assets/* /data/coma/
RUN chmod +x /data/coma/*.sh
# tr to run coma at vnc login
# RUN bash -c 'echo "exec /data/coma/coma.sh" >> /root/.xinitrc'
EXPOSE 5900
ENV DISPLAY :0
CMD /data/coma/x11_vnc.sh
#http://downloads.sourceforge.net/project/coma-ce/coma%203.0%20ce%20v3.zip?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcoma-ce%2F&ts=1463056186&use_mirror=tenet