Skip to content

Commit

Permalink
set credentials in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Piao committed Jun 25, 2024
1 parent fac28ca commit 2f013f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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

0 comments on commit 2f013f2

Please sign in to comment.