NIFI-7080

* Ensure script files in Docker builds are treated as executable.
* Updating git permissions to reflect executable for both secure.sh scripts.

Signed-off-by: Aldrin Piri <aldrin@apache.org>
Signed-off-by: Kevin Doran <kdoran@apache.org>

This closes #4027.

Signed-off-by: Kevin Doran <kdoran@apache.org>
This commit is contained in:
Aldrin Piri 2020-01-30 14:46:16 -05:00 committed by Kevin Doran
parent 76e8c51e11
commit c8af8eaa76
No known key found for this signature in database
GPG Key ID: 5621A6244B77AC02
4 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ ENV NIFI_PID_DIR=${NIFI_HOME}/run
ENV NIFI_LOG_DIR=${NIFI_HOME}/logs
ADD sh/ ${NIFI_BASE_DIR}/scripts/
RUN chmod -R +x ${NIFI_BASE_DIR}/scripts/*.sh
# Setup NiFi user and create necessary directories
RUN groupadd -g ${GID} nifi || groupmod -n nifi `getent group ${GID} | cut -d: -f1` \

0
nifi-docker/dockerhub/sh/secure.sh Normal file → Executable file
View File

View File

@ -30,6 +30,7 @@ ENV NIFI_PID_DIR=${NIFI_HOME}/run
ENV NIFI_LOG_DIR=${NIFI_HOME}/logs
ADD sh/ ${NIFI_BASE_DIR}/scripts/
RUN chmod -R +x ${NIFI_BASE_DIR}/scripts/*.sh
COPY $NIFI_BINARY $NIFI_BASE_DIR
RUN unzip ${NIFI_BASE_DIR}/nifi-${NIFI_VERSION}-bin.zip -d ${NIFI_BASE_DIR} \

0
nifi-docker/dockermaven/sh/secure.sh Normal file → Executable file
View File