NIFI-3314 Adjusting Dockerfile for Docker Hub to use defaults for ARGs

such that it does not need supporting build script.  Making use of
openjdk base image as the java image has been deprecated.

This closes #1419
This commit is contained in:
Aldrin Piri 2017-01-13 16:56:49 -05:00 committed by Oleg Zhurakousky
parent 63c763885c
commit 67e2459660
2 changed files with 7 additions and 7 deletions

View File

@ -16,12 +16,12 @@
# under the License. # under the License.
# #
FROM java:8 FROM openjdk:8
MAINTAINER Apache NiFi <dev@nifi.apache.org> MAINTAINER Apache NiFi <dev@nifi.apache.org>
ARG UID ARG UID=1000
ARG GID ARG GID=50
ARG NIFI_VERSION ARG NIFI_VERSION=1.2.0
ENV NIFI_BASE_DIR /opt/nifi ENV NIFI_BASE_DIR /opt/nifi
ENV NIFI_HOME $NIFI_BASE_DIR/nifi-$NIFI_VERSION ENV NIFI_HOME $NIFI_BASE_DIR/nifi-$NIFI_VERSION

View File

@ -16,11 +16,11 @@
# under the License. # under the License.
# #
FROM java:8 FROM openjdk:8
MAINTAINER Apache NiFi <dev@nifi.apache.org> MAINTAINER Apache NiFi <dev@nifi.apache.org>
ARG UID ARG UID=1000
ARG GID ARG GID=50
ARG NIFI_VERSION ARG NIFI_VERSION
ARG NIFI_BINARY ARG NIFI_BINARY