-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 1.23 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
FROM node:9
# Install Java 8
RUN echo 'deb http://ftp.debian.org/debian jessie-backports main' >> /etc/apt/sources.list
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y -t jessie-backports openjdk-8-jre-headless
# Install requirements for OSTRICH ingester
ADD install-kc.sh install-kc.sh
ENV CC clang
ENV CXX clang++
RUN apt-get update && \
apt-get install -y clang && \
curl -sSL https://cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz | tar -xzC /opt && \
./install-kc.sh
ENV PATH="/opt/cmake-3.5.2-Linux-x86_64/bin/:$PATH"
# Add OSTRICH ingestion script and install
ADD ingester/* /ostrich/ingester/
RUN export cmake="/opt/bin/cmake" && cd /ostrich/ingester && npm install --unsafe-perm
# Fetch comunica-ostrich from GitHub
RUN git clone -n https://github.com/comunica/comunica.git /ostrich/comunica && cd /ostrich/comunica && git checkout ea9a853003ac7f3142482f6a5ab370cf4d11202a
RUN cd /ostrich/comunica && npm install --unsafe-perm
# Add pre-compiled HOBBIT system adapter
ADD build/libs/OstrichHobbitMochaVersioningAdapter-1.0.0-all.jar /ostrich/ostrich-1.0.0.jar
WORKDIR /ostrich
CMD java -cp ostrich-1.0.0.jar org.hobbit.core.run.ComponentStarter org.rdfostrich.hobbit.mocha.versioning.OstrichSystemAdapter