-
Notifications
You must be signed in to change notification settings - Fork 58
/
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.6.1 release (2021-06-22)
ENV VIRTUOSO_COMMIT 64663f91c657aec14bbdcef8b6e5c9b6ac89cb8b
# 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"]