From 2f013f2a662565e44508999cb80195318e620088 Mon Sep 17 00:00:00 2001 From: Piao Date: Tue, 25 Jun 2024 16:40:29 +0100 Subject: [PATCH] set credentials in Dockerfile --- server/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index fee0f22..a196de4 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -38,6 +38,9 @@ ENV NIFI_HOME ${NIFI_BASE_DIR}/nifi-current ENV NIFI_TOOLKIT_HOME ${NIFI_BASE_DIR}/nifi-toolkit-current ENV NIFI_PID_DIR=${NIFI_HOME}/run ENV NIFI_LOG_DIR=${NIFI_HOME}/logs +# Set GLACIATION credentials username password +ENV SINGLE_USER_CREDENTIALS_USERNAME=glaciation +ENV SINGLE_USER_CREDENTIALS_PASSWORD=glaciation ADD sh/ ${NIFI_BASE_DIR}/scripts/ RUN chmod -R +x ${NIFI_BASE_DIR}/scripts/*.sh \ @@ -115,5 +118,3 @@ WORKDIR ${NIFI_HOME} # https://docs.docker.com/engine/reference/builder/#exec-form-entrypoint-example ENTRYPOINT ["../scripts/start.sh"] -# Set GLACIATION credentials username password -RUN $NIFI_HOME/bin/nifi.sh set-single-user-credentials glaciation glaciation