forked from rdfhdt/hdt-cpp
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 715 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 715 Bytes
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
FROM gcc:6
WORKDIR /usr/local/src
COPY . /usr/local/src/hdt-cpp/
# Install dependencies
RUN apt-get update && apt-get -y install \
build-essential \
libraptor2-dev \
#libserd-dev \
autoconf \
libtool \
liblzma-dev \
liblzo2-dev \
zlib1g-dev
# Install more recent serd
RUN wget https://github.com/drobilla/serd/archive/v0.28.0.tar.gz \
&& tar -xvzf *.tar.gz \
&& rm *.tar.gz \
&& cd serd-* \
&& ./waf configure && ./waf && ./waf install
# Install HDT tools
RUN cd hdt-cpp && ./autogen.sh && ./configure && make -j2
# Expose binaries
ENV PATH /usr/local/src/hdt-cpp/libhdt/tools:$PATH
# reset WORKDIR
WORKDIR /
# Default command
CMD ["/bin/echo", "Available commands: rdf2hdt hdt2rdf hdtSearch"]