forked from tenforce/docker-virtuoso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (37 loc) · 1.91 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:18.04
# Set Virtuoso commit SHA to Virtuoso 7.2.5.1 release (15/08/2018)
ENV VIRTUOSO_COMMIT 17c4ba1d5825822d8380ef8d9f978e2d57f4768f
# Build virtuoso from source and clean up afterwards
RUN apt-get update \
&& apt-get install -y build-essential autotools-dev autoconf automake unzip wget net-tools libtool flex bison gperf gawk m4 libssl-dev libreadline-dev openssl crudini \
# Workaround for #663
&& apt-get install -y libssl1.0-dev \
&& wget https://github.com/openlink/virtuoso-opensource/archive/${VIRTUOSO_COMMIT}.zip \
&& unzip ${VIRTUOSO_COMMIT}.zip \
&& rm ${VIRTUOSO_COMMIT}.zip \
&& cd virtuoso-opensource-${VIRTUOSO_COMMIT} \
&& ./autogen.sh \
&& export CFLAGS="-O2 -m64" && ./configure --disable-bpel-vad --enable-conductor-vad --enable-fct-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-${VIRTUOSO_COMMIT} \
&& apt remove --purge -y build-essential autotools-dev autoconf automake unzip wget net-tools libtool flex bison gperf gawk m4 libssl-dev libreadline-dev \
&& apt autoremove -y \
&& apt autoclean
# Add Virtuoso bin to the PATH
ENV PATH /usr/local/virtuoso-opensource/bin/:$PATH
# Add Virtuoso config
COPY virtuoso.ini /virtuoso.ini
# Add dump_nquads_procedure
COPY dump_nquads_procedure.sql /dump_nquads_procedure.sql
# Add Virtuoso log cleaning script
COPY clean-logs.sh /clean-logs.sh
# Add startup script
COPY virtuoso.sh /virtuoso.sh
VOLUME /data
WORKDIR /data
EXPOSE 8890
EXPOSE 1111
CMD ["/bin/bash", "/virtuoso.sh"]