@@ -18,7 +18,7 @@ RUN microdnf update && \
18
18
# [ERROR] Detected Maven Version: 3.6.3 is not in the allowed range [3.9.6,).
19
19
#
20
20
WORKDIR /tmp
21
- RUN if [[ "${PRODUCT}" == 2 .* ]] ; then \
21
+ RUN if [[ "${PRODUCT}" != 1 .* ]] ; then \
22
22
curl "https://repo.stackable.tech/repository/packages/maven/apache-maven-${MAVEN_VERSION}-bin.tar.gz" | tar -xzC . && \
23
23
ln -sf /tmp/apache-maven-${MAVEN_VERSION}/bin/mvn /usr/bin/mvn ; \
24
24
fi
@@ -45,7 +45,13 @@ RUN curl 'https://repo.stackable.tech/repository/m2/tech/stackable/nifi/stackabl
45
45
patches/apply_patches.sh ${PRODUCT} && \
46
46
# Build NiFi
47
47
cd /stackable/nifi-${PRODUCT}-src/ && \
48
- mvn --batch-mode --no-transfer-progress clean install -Dmaven.javadoc.skip=true -DskipTests --activate-profiles include-iceberg,include-hadoop-aws,include-hadoop-azure,include-hadoop-gcp && \
48
+ # NOTE: Since NiFi 2.0.0 PutIceberg Processor and services were removed, so including the `include-iceberg` profile does nothing.
49
+ # Additionally some modules were moved to optional build profiles, so we need to add `include-hadoop` to get `nifi-parquet-nar` for example.
50
+ if [[ "${PRODUCT}" != 1.* ]] ; then \
51
+ mvn --batch-mode --no-transfer-progress clean install -Dmaven.javadoc.skip=true -DskipTests --activate-profiles include-hadoop,include-hadoop-aws,include-hadoop-azure,include-hadoop-gcp ; \
52
+ else \
53
+ mvn --batch-mode --no-transfer-progress clean install -Dmaven.javadoc.skip=true -DskipTests --activate-profiles include-iceberg,include-hadoop-aws,include-hadoop-azure,include-hadoop-gcp ; \
54
+ fi && \
49
55
# Copy the binaries to the /stackable folder
50
56
mv /stackable/nifi-${PRODUCT}-src/nifi-assembly/target/nifi-${PRODUCT}-bin/nifi-${PRODUCT} /stackable/nifi-${PRODUCT} && \
51
57
# Copy the SBOM as well
@@ -112,7 +118,7 @@ USER ${STACKABLE_USER_UID}
112
118
113
119
ENV HOME=/stackable
114
120
ENV NIFI_HOME=/stackable/nifi
115
- ENV PATH="${PATH}" :/stackable/nifi/bin
121
+ ENV PATH="${PATH}:/stackable/nifi/bin"
116
122
117
123
WORKDIR /stackable/nifi
118
124
CMD ["bin/nifi.sh" , "run" ]
0 commit comments