1+ ARG RMLSTREAMER_VERSION=2.5.0
2+
13FROM eclipse-temurin:11-jre AS build-hdt-cpp
24
5+ ARG RMLSTREAMER_VERSION
6+
37RUN apt-get update \
48 && apt-get install -y --no-install-recommends \
59 autoconf \
@@ -14,18 +18,25 @@ RUN apt-get update \
1418 && rm -rf /var/lib/apt/lists/*
1519
1620WORKDIR /opt
17- RUN git clone --depth 1 https://github.com/rdfhdt/hdt-cpp.git
21+ RUN git clone --depth 1 https://github.com/rdfhdt/hdt-cpp.git \
22+ && (git clone --branch "v${RMLSTREAMER_VERSION}" --depth 1 https://github.com/RMLio/RMLStreamer.git /opt/RMLStreamer \
23+ || git clone --branch "${RMLSTREAMER_VERSION}" --depth 1 https://github.com/RMLio/RMLStreamer.git /opt/RMLStreamer \
24+ || git clone --depth 1 https://github.com/RMLio/RMLStreamer.git /opt/RMLStreamer)
1825
1926WORKDIR /opt/hdt-cpp
2027RUN ./autogen.sh \
2128 && ./configure \
2229 && make -j"$(nproc)" \
2330 && make install
2431
32+ RUN mkdir -p /opt/third_party_licenses \
33+ && cp /opt/hdt-cpp/libhdt/COPYRIGHT /opt/third_party_licenses/HDT-CPP.COPYRIGHT \
34+ && cp /opt/RMLStreamer/LICENSE /opt/third_party_licenses/RMLStreamer.LICENSE
35+
2536
2637FROM eclipse-temurin:11-jre
2738
28- ARG RMLSTREAMER_VERSION=2.5.0
39+ ARG RMLSTREAMER_VERSION
2940
3041RUN apt-get update \
3142 && apt-get install -y --no-install-recommends \
@@ -51,6 +62,8 @@ COPY --from=build-hdt-cpp /usr/local/bin/rdf2hdt /usr/local/bin/rdf2hdt
5162COPY --from=build-hdt-cpp /usr/local/bin/hdt2rdf /usr/local/bin/hdt2rdf
5263COPY --from=build-hdt-cpp /usr/local/lib/libcds* /usr/local/lib/
5364COPY --from=build-hdt-cpp /usr/local/lib/libhdt* /usr/local/lib/
65+ COPY --from=build-hdt-cpp /opt/third_party_licenses/ /usr/share/licenses/vcf-rdfizer/
66+ COPY THIRD_PARTY_NOTICES.md /usr/share/licenses/vcf-rdfizer/THIRD_PARTY_NOTICES.md
5467COPY src/*.sh /opt/vcf-rdfizer/
5568
5669RUN chmod +x /opt/vcf-rdfizer/*.sh \
0 commit comments