NIFI-11667 Provide default NiFi version when building dockerhub image

Signed-off-by: Chris Sampson <chris.sampson82@gmail.com>

This closes #7361
This commit is contained in:
Mathew Kiprop 2023-06-08 19:42:57 +03:00 committed by Chris Sampson
parent 4509f5de80
commit 36da257e56
No known key found for this signature in database
GPG Key ID: 546AEB0826587237
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ DISTRO_PATH="${5:-}"
DOCKER_IMAGE="$(grep -Ev '(^#|^\s*$|^\s*\t*#)' DockerImage.txt)"
NIFI_IMAGE_VERSION="$(echo "${DOCKER_IMAGE}" | cut -d : -f 2)"
if [ -z "${DISTRO_PATH}" ]; then
DISTRO_PATH="${NIFI_VERSION}"
DISTRO_PATH="${NIFI_IMAGE_VERSION}"
fi
echo "Building NiFi Image: '${DOCKER_IMAGE}' Version: '${NIFI_IMAGE_VERSION}' Mirror: '${MIRROR}' Base: '${BASE} Path: '${DISTRO_PATH}' User/Group: '${DOCKER_UID}/${DOCKER_GID}'"

View File

@ -29,8 +29,8 @@ ARG NIFI_VERSION=2.0.0
ARG BASE_URL=https://archive.apache.org/dist
ARG MIRROR_BASE_URL=${MIRROR_BASE_URL:-${BASE_URL}}
ARG DISTRO_PATH=${DISTRO_PATH:-${NIFI_VERSION}}
ARG NIFI_BINARY_PATH=${NIFI_BINARY_PATH:-/nifi/${DISTRO_PATH}/nifi-${NIFI_VERSION}-bin.zip}
ARG NIFI_TOOLKIT_BINARY_PATH=${NIFI_TOOLKIT_BINARY_PATH:-/nifi/${DISTRO_PATH}/nifi-toolkit-${NIFI_VERSION}-bin.zip}
ARG NIFI_BINARY_PATH=${NIFI_BINARY_PATH:-nifi/${DISTRO_PATH}/nifi-${NIFI_VERSION}-bin.zip}
ARG NIFI_TOOLKIT_BINARY_PATH=${NIFI_TOOLKIT_BINARY_PATH:-nifi/${DISTRO_PATH}/nifi-toolkit-${NIFI_VERSION}-bin.zip}
ENV NIFI_BASE_DIR=/opt/nifi
ENV NIFI_HOME ${NIFI_BASE_DIR}/nifi-current