-
Notifications
You must be signed in to change notification settings - Fork 0
/
ldi-nifi.Dockerfile
28 lines (23 loc) · 1.73 KB
/
ldi-nifi.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
ARG NIFI_DOCKER_IMAGE_VERSION
#
# INSTALL MAVEN DEPENDENCIES
#
FROM maven:3.8.5-amazoncorretto-17 AS builder
# MAVEN: application
FROM builder AS app-stage
COPY . .
RUN mvn clean install -DskipTests
FROM ldes/nifi:${NIFI_DOCKER_IMAGE_VERSION} AS packaging-stage
COPY --from=app-stage --chown=nifi:nifi ldi-nifi/ldi-nifi-processors/create-version-object-processor/target/*.nar /opt/nifi/nifi-current/lib/
COPY --from=app-stage --chown=nifi:nifi ldi-nifi/ldi-nifi-processors/ldes-client-processor/target/*.nar /opt/nifi/nifi-current/lib/
COPY --from=app-stage --chown=nifi:nifi ldi-nifi/ldi-nifi-processors/sparql-interactions-processor/target/*.nar /opt/nifi/nifi-current/lib/
COPY --from=app-stage --chown=nifi:nifi ldi-nifi/ldi-nifi-processors/version-materialisation-processor/target/*.nar /opt/nifi/nifi-current/lib/
COPY --from=app-stage --chown=nifi:nifi ldi-nifi/ldi-nifi-processors/ngsiv2-to-ld-processor/target/*.nar /opt/nifi/nifi-current/lib/
COPY --from=app-stage --chown=nifi:nifi ldi-nifi/ldi-nifi-processors/json-to-ld-processor/target/*.nar /opt/nifi/nifi-current/lib/
COPY --from=app-stage --chown=nifi:nifi ldi-nifi/ldi-nifi-processors/rdf4j-repository-materialisation-processor/target/*.nar /opt/nifi/nifi-current/lib/
COPY --from=app-stage --chown=nifi:nifi ldi-nifi/ldi-nifi-processors/geojson-to-wkt-processor/target/*.nar /opt/nifi/nifi-current/lib/
COPY --from=app-stage --chown=nifi:nifi ldi-nifi/ldi-nifi-processors/archive-file-out/target/*.nar /opt/nifi/nifi-current/lib/
COPY --from=app-stage --chown=nifi:nifi ldi-nifi/ldi-nifi-processors/archive-file-in/target/*.nar /opt/nifi/nifi-current/lib/
RUN rm -rf *.db *.db-* ldes-client-processor/*.db ldes-client-processor/*.db-*
RUN chmod -R 664 /opt/nifi/nifi-current/lib/*.nar
USER nifi