Skip to content

Commit fe883b9

Browse files
committed
build nifi-opa-plugin from branch feat/reworked-opa-response
1 parent 625ed24 commit fe883b9

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

nifi/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,18 @@ ARG PRODUCT
8888
USER ${STACKABLE_USER_UID}
8989
WORKDIR /stackable
9090

91-
COPY --chown=${STACKABLE_USER_UID}:0 nifi/stackable/opa-authorizer/nifi-framework-api-version.patch /stackable/nifi-framework-api-version.patch
92-
9391
# TODO: Set to tag after new release of nifi-opa-plugin
94-
RUN git clone --depth 1 https://github.com/DavidGitter/nifi-opa-plugin.git && \
95-
cd nifi-opa-plugin && \
96-
git reset --hard cdf8c36 && \
97-
git apply /stackable/nifi-framework-api-version.patch && \
98-
cd authorizer && \
92+
RUN git clone --depth 1 --branch feat/reworked-opa-response https://github.com/DavidGitter/nifi-opa-plugin.git && \
93+
cd nifi-opa-plugin/authorizer && \
9994
mvn \
10095
--batch-mode \
10196
--no-transfer-progress \
10297
install \
103-
-DskipTests
98+
-DskipTests \
99+
-Pnifi-${PRODUCT}
100+
101+
# Set correct permissions
102+
RUN chmod g=u /stackable/nifi-opa-plugin/authorizer/target/opa-authorizer.nar
104103

105104
FROM stackable/image/java-base AS final
106105

@@ -151,7 +150,7 @@ ln -s /stackable/nifi-${PRODUCT} /stackable/nifi
151150
chown --no-dereference ${STACKABLE_USER_UID}:0 /stackable/nifi
152151
chmod --recursive g=u /stackable/python
153152
chmod --recursive g=u /stackable/bin
154-
chmod --recursive g=u /stackable/nifi-${PRODUCT}
153+
chmod g=u /stackable/nifi-${PRODUCT}
155154
EOF
156155

157156
# ----------------------------------------

nifi/stackable/opa-authorizer/nifi-framework-api-version.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)