mirror of https://github.com/apache/nifi.git
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:
parent
4509f5de80
commit
36da257e56
|
@ -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}'"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue