forked from tenforce/docker-virtuoso
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
59 lines (42 loc) · 2.03 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
FROM ubuntu:14.04
MAINTAINER Erika Pauwels <[email protected]>
# Install Virtuoso prerequisites
RUN apt-get update \
&& apt-get install -y build-essential debhelper autotools-dev autoconf automake unzip wget net-tools git libtool flex bison gperf gawk m4 libssl-dev libreadline-dev libreadline-dev openssl
# Set Virtuoso commit SHA to Virtuoso 7.2 release (14/02/2015)
ENV VIRTUOSO_COMMIT a5e1f5bb055761c389ea50f8f8849b73e5241018
# Get Virtuoso source code from GitHub and checkout specific commit
# Make and install Virtuoso (by default in /usr/local/virtuoso-opensource)
RUN git clone https://github.com/openlink/virtuoso-opensource.git \
&& cd virtuoso-opensource \
&& git checkout ${VIRTUOSO_COMMIT} \
&& ./autogen.sh \
&& CFLAGS="-O2 -m64" && export CFLAGS && ./configure --disable-bpel-vad --enable-conductor-vad --disable-dbpedia-vad --disable-demo-vad --disable-isparql-vad --disable-ods-vad --disable-sparqldemo-vad --disable-syncml-vad --disable-tutorial-vad --with-readline --program-transform-name="s/isql/isql-v/" \
&& make && make install \
&& ln -s /usr/local/virtuoso-opensource/var/lib/virtuoso/ /var/lib/virtuoso \
&& ln -s /var/lib/virtuoso/db /data \
&& cd .. \
&& rm -r /virtuoso-opensource
# Add Virtuoso bin to the PATH
ENV PATH /usr/local/virtuoso-opensource/bin/:$PATH
# Add Virtuoso config
ADD virtuoso.ini /virtuoso.ini
# Add dump_nquads_procedure
ADD dump_nquads_procedure.sql /dump_nquads_procedure.sql
# Add Virtuoso log cleaning script
ADD clean-logs.sh /clean-logs.sh
# Add startup script
ADD virtuoso.sh /virtuoso.sh
# Let's add some other dependencies
RUN apt-get install -y python2.7 python-pip awscli
ADD crontab /etc/cron.d/periodic_back_cron
RUN chmod 0644 /etc/cron.d/periodic_back_cron
#ADD periodic_backup.sh /periodic_backup.sh
#RUN chmod u+x /periodic_backup.sh
RUN touch /var/log/cron.d
ADD dump_one_graph_procedure.sql /dump_one_graph_procedure.sql
VOLUME /data
WORKDIR /data
EXPOSE 8890
EXPOSE 1111
CMD ["/bin/bash", "/virtuoso.sh"]