forked from cgueret/docker-4store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (34 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
FROM debian:wheezy
MAINTAINER Christophe Gueret <[email protected]>
# Install things needed to compile 4store
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && apt-get install -y --no-install-recommends \
apt-transport-https ca-certificates \
git supervisor build-essential automake gperf libtool flex bison \
libssl-dev libraptor2-0 librasqal3 libraptor2-dev \
librasqal3-dev ncurses-base libncurses5 \
libncurses5-dev libreadline6-dev uuid-dev libglib2.0-dev \
libnet-http-perl liburi-perl
# Clone, compile and install 4store
RUN cd /usr/local/src && \
git clone https://github.com/garlik/4store.git && \
cd 4store && \
./autogen.sh && \
./configure && \
make && \
make install && \
mkdir /var/log/4store
RUN apt-get -y install wget unzip
VOLUME /var/lib/4store
COPY supervisor.conf /etc/supervisor/conf.d/
# EXPOSE 80
EXPOSE 8080
RUN wget https://www.dropbox.com/sh/2fqy5hadj2r3etw/AAC7VnxQw6jfZ_r2bGV8Piaqa/2016R3.rdf?dl=0 -O thesaurus.rdf
RUN wget https://www.dropbox.com/sh/2fqy5hadj2r3etw/AAAe8BnYR0jbyWgiw2JaiOvba/aas_metadata.zip?dl=0 -O metadata.zip
RUN unzip metadata.zip && mv aas_metadata.nt metadata.nt
# RUN wget https://www.dropbox.com/s/92th9xaew01ewm2/apj_metadata.nt?dl=0 -O metadata.nt
# RUN wget https://www.dropbox.com/s/ow31fzysjzhfkmq/aas_metadata.nt?dl=0 -O metadata.nt
# RUN wget https://www.dropbox.com/s/vhc2ampsjgawqrr/2016R3_rc1.rdf?dl=0 -O thesaurus.rdf
COPY run.sh /
ENTRYPOINT [ "/run.sh" ]
CMD ["/usr/bin/supervisord"]