-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
51 lines (36 loc) · 1.46 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
FROM aksw/dld-present-ontowiki
MAINTAINER Georges Alkhouri <[email protected]>
MAINTAINER Natanael Arndt <[email protected]>
MAINTAINER Simeon Ackerman <[email protected]>
ENV PWDDBA dba
# RUN apt-get update
# install dependencies
# RUN apt-get install -y libldap-2.4-2 libssl1.0.0 wget nano
# install Virtuoso
COPY virtuoso-minimal_7.2_all.deb /
COPY virtuoso-opensource-7-bin_7.2_amd64.deb /
COPY libvirtodbc0_7.2_amd64.deb /
COPY virtuoso.ini.dist /
RUN dpkg -i virtuoso-minimal_7.2_all.deb \
virtuoso-opensource-7-bin_7.2_amd64.deb \
libvirtodbc0_7.2_amd64.deb
# the latest ontowiki doesnt work, we checkout latest working commit edb16f533e96dcd262d1d9e06de09d68fd3ed3a2
RUN cd /var/www/ && git checkout edb16f533e96dcd262d1d9e06de09d68fd3ed3a2
RUN cd /var/www/ && make deploy
# configure the OntoWiki site for Nginx, increase upload time
COPY ontowiki-nginx.conf /etc/nginx/sites-available/
# install CubeViz extensions
RUN git clone https://github.com/AKSW/cubeviz.ontowiki.git /var/www/extensions/cubeviz
RUN cd /var/www/extensions/cubeviz && git checkout master && make install
#config php
RUN echo "upload_max_filesize = 100M" >> /etc/php5/fpm/php.ini
RUN echo "post_max_size = 100M" >> /etc/php5/fpm/php.ini
RUN echo "request_terminate_timeout = 3600" >> /etc/php5/fpm/php.ini
# configure odbc for virtuoso
ADD odbc.ini /etc/
EXPOSE 1111
EXPOSE 8890
EXPOSE 80
VOLUME /var/lib/virtuoso/db
COPY run.sh /bin/
CMD ["run.sh"]