Skip to content

Commit

Permalink
NIFI-7080
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Signed-off-by: Kevin Doran <[email protected]>

This closes apache#4027.

Signed-off-by: Kevin Doran <[email protected]>
  • Loading branch information
apiri authored and kevdoran committed Jan 31, 2020
1 parent 76e8c51 commit c8af8ea
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions nifi-docker/dockerhub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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` \
Expand Down
Empty file modified nifi-docker/dockerhub/sh/secure.sh
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions nifi-docker/dockermaven/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down
Empty file modified nifi-docker/dockermaven/sh/secure.sh
100644 → 100755
Empty file.

0 comments on commit c8af8ea

Please sign in to comment.