1
1
# syntax=docker/dockerfile:1.10.0@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
2
- # check=error=true
2
+ # check=error=true;skip=InvalidDefaultArgInFrom
3
+
4
+ ARG GIT_SYNC
5
+
6
+ FROM oci.stackable.tech/sdp/git-sync/git-sync:${GIT_SYNC} AS git-sync-image
3
7
4
8
FROM stackable/image/java-devel AS nifi-builder
5
9
@@ -32,6 +36,7 @@ WORKDIR /stackable
32
36
33
37
COPY --chown=${STACKABLE_USER_UID}:0 nifi/stackable/patches/patchable.toml /stackable/src/nifi/stackable/patches/patchable.toml
34
38
COPY --chown=${STACKABLE_USER_UID}:0 nifi/stackable/patches/${PRODUCT} /stackable/src/nifi/stackable/patches/${PRODUCT}
39
+ COPY --chown=${STACKABLE_USER_UID}:0 --from=git-sync-image /git-sync /stackable/git-sync
35
40
36
41
RUN <<EOF
37
42
# This used to be located in /bin/stackable-bcrypt.jar. We create a softlink for /bin/stackable-bcrypt.jar in the main container for backwards compatibility.
@@ -125,6 +130,7 @@ COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-builder /stackable/nifi-${PRODU
125
130
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-builder /stackable/stackable-bcrypt.jar /stackable/stackable-bcrypt.jar
126
131
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-iceberg-bundle-builder /stackable/*.nar /stackable/nifi-${PRODUCT}/lib/
127
132
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-iceberg-bundle-builder /stackable/*.sbom.json /stackable/nifi-${PRODUCT}/lib/
133
+ COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-builder /stackable/git-sync /stackable/git-sync
128
134
129
135
COPY --chown=${STACKABLE_USER_UID}:0 nifi/stackable/bin /stackable/bin
130
136
COPY --chown=${STACKABLE_USER_UID}:0 nifi/licenses /licenses
@@ -133,9 +139,11 @@ COPY --chown=${STACKABLE_USER_UID}:0 nifi/python /stackable/python
133
139
RUN <<EOF
134
140
microdnf update
135
141
142
+ # git: Required for git-sync
136
143
# python-pip: Required to install Python packages
137
144
# Note: Python is also required for the Python processors (ExecuteScript and other for NiFi < 2.0 and custom Python processors for NiFi > 2.0)
138
145
microdnf install \
146
+ git \
139
147
python-pip
140
148
141
149
microdnf clean all
0 commit comments