mirror of https://github.com/apache/nifi.git
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:
parent
76e8c51e11
commit
c8af8eaa76
|
@ -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` \
|
||||
|
|
|
@ -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} \
|
||||
|
|
Loading…
Reference in New Issue