Skip to content

Commit 27f997f

Browse files
committed
chore: Merge branch 'main' into chore/pin-rustup-version
2 parents b1c0195 + b87b5cc commit 27f997f

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ All notable changes to this project will be documented in this file.
3838
`check-permissions-ownership.sh` provided in stackable-base image ([#1025]).
3939
- zookeeper: check for correct permissions and ownerships in /stackable folder via
4040
`check-permissions-ownership.sh` provided in stackable-base image ([#1043]).
41+
- nifi: Build and add OPA authorizer plugin nar ([#1058]).
42+
- nifi: Add [nifi-iceberg-bundle](https://github.com/stackabletech/nifi-iceberg-bundle) for NiFi `2.2.0` ([#1060], [#1106]).
4143
- java: Add JDK 24 ([#1097]).
4244
- ci: Add golang image to mirror workflow ([#1103]).
4345
- omid: bump version to 1.1.3 ([#1105])
@@ -111,6 +113,7 @@ All notable changes to this project will be documented in this file.
111113
[#1054]: https://github.com/stackabletech/docker-images/pull/1054
112114
[#1055]: https://github.com/stackabletech/docker-images/pull/1055
113115
[#1056]: https://github.com/stackabletech/docker-images/pull/1056
116+
[#1058]: https://github.com/stackabletech/docker-images/pull/1058
114117
[#1060]: https://github.com/stackabletech/docker-images/pull/1060
115118
[#1090]: https://github.com/stackabletech/docker-images/pull/1090
116119
[#1091]: https://github.com/stackabletech/docker-images/pull/1091

nifi/Dockerfile

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ mkdir -p /stackable
9797

9898
# NiFI 1.x natively supports Iceberg, no need to build an iceberg-bundle for it
9999
if [[ "${PRODUCT}" != 1.* ]] ; then
100-
curl "https://github.com/stackabletech/nifi-iceberg-bundle/archive/refs/tags/${NIFI_ICEBERG_BUNDLE}.tar.gz" | tar -xzC .
100+
curl -L "https://github.com/stackabletech/nifi-iceberg-bundle/archive/refs/tags/${NIFI_ICEBERG_BUNDLE}.tar.gz" | tar -xzC .
101101
cd nifi-iceberg-bundle-${NIFI_ICEBERG_BUNDLE} || exit
102102

103103
sed -i -e "s/{{ NIFI_VERSION }}/${PRODUCT}/g" pom.xml
@@ -126,6 +126,35 @@ chmod g=u /stackable/*.cdx.json
126126
fi
127127
EOF
128128

129+
FROM stackable/image/java-devel AS opa-authorizer-builder
130+
131+
ARG NIFI_OPA_AUTHORIZER_PLUGIN
132+
ARG STACKABLE_USER_UID
133+
ARG PRODUCT
134+
135+
USER ${STACKABLE_USER_UID}
136+
WORKDIR /build
137+
138+
RUN <<EOF
139+
mkdir -p /stackable
140+
141+
curl -L "https://github.com/DavidGitter/nifi-opa-plugin/archive/refs/tags/v${NIFI_OPA_AUTHORIZER_PLUGIN}.tar.gz" | tar -xzC .
142+
cd nifi-opa-plugin-${NIFI_OPA_AUTHORIZER_PLUGIN}/authorizer || exit
143+
144+
mvn \
145+
--batch-mode \
146+
--no-transfer-progress \
147+
clean package \
148+
-DskipTests \
149+
-Pnifi-${PRODUCT}
150+
151+
cp ./target/opa-authorizer.nar /stackable/opa-authorizer.nar
152+
cp ../LICENSE /stackable/LICENSE
153+
154+
# Set correct permissions
155+
chmod g=u /stackable/opa-authorizer.nar
156+
EOF
157+
129158
FROM stackable/image/java-base AS final
130159

131160
ARG PRODUCT
@@ -146,6 +175,8 @@ COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-iceberg-bundle-builder /stackab
146175
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-iceberg-bundle-builder /stackable/*.cdx.json /stackable/nifi-${PRODUCT}/lib/
147176
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-builder /stackable/git-sync /stackable/git-sync
148177

178+
COPY --chown=${STACKABLE_USER_UID}:0 --from=opa-authorizer-builder /stackable/opa-authorizer.nar /stackable/nifi-${PRODUCT}/extensions/opa-authorizer.nar
179+
COPY --chown=${STACKABLE_USER_UID}:0 --from=opa-authorizer-builder /stackable/LICENSE /licenses/NIFI_OPA_PLUGIN_LICENSE
149180
COPY --chown=${STACKABLE_USER_UID}:0 nifi/stackable/bin /stackable/bin
150181
COPY --chown=${STACKABLE_USER_UID}:0 nifi/licenses /licenses
151182
COPY --chown=${STACKABLE_USER_UID}:0 nifi/python /stackable/python

nifi/versions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@
44
"java-base": "11",
55
"java-devel": "11", # There is an error when trying to use the jdk 21 (since nifi 1.26.0)
66
"git_sync": "v4.4.0",
7+
"nifi_opa_authorizer_plugin": "0.1.0",
78
},
89
{
910
"product": "1.28.1",
1011
"java-base": "11",
1112
"java-devel": "11",
1213
"git_sync": "v4.4.0",
14+
"nifi_opa_authorizer_plugin": "0.1.0",
1315
},
1416
{
1517
"product": "2.4.0",
1618
"java-base": "21",
1719
"java-devel": "21",
1820
"git_sync": "v4.4.0",
1921
"nifi_iceberg_bundle": "0.0.4",
22+
"nifi_opa_authorizer_plugin": "0.1.0",
2023
},
2124
]

0 commit comments

Comments
 (0)