2016-07-06 19:57:13 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for nifi
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM java:8-jre-alpine
|
2017-05-08 01:05:07 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.pro>
|
2016-07-06 19:57:13 +02:00
|
|
|
|
|
|
|
ENV NIFI_VERSION 0.6.1
|
|
|
|
ENV NIFI_FILE nifi-${NIFI_VERSION}-bin.tar.gz
|
|
|
|
ENV NIFI_URL https://archive.apache.org/dist/nifi/${NIFI_VERSION}/${NIFI_FILE}
|
|
|
|
ENV NIFI_HOME /opt/nifi
|
|
|
|
|
|
|
|
WORKDIR $NIFI_HOME
|
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apk add --no-cache bash curl tar \
|
2018-02-03 03:59:36 +02:00
|
|
|
&& curl -fSL ${NIFI_URL} | tar xz --strip-components=1 \
|
2016-07-06 19:57:13 +02:00
|
|
|
&& apk del curl tar \
|
|
|
|
&& addgroup -g 1000 nifi \
|
|
|
|
&& adduser -h ${NIFI_HOME} -s /bin/bash -G nifi -u 1000 -D -H nifi \
|
|
|
|
&& mkdir -p content_repository database_repository flowfile_repository provenance_repository \
|
|
|
|
&& chown -R nifi:nifi ${NIFI_HOME}
|
|
|
|
|
|
|
|
VOLUME ${NIFI_HOME}/content_repository \
|
|
|
|
${NIFI_HOME}/database_repository \
|
|
|
|
${NIFI_HOME}/flowfile_repository \
|
|
|
|
${NIFI_HOME}/provenance_repository
|
|
|
|
|
|
|
|
EXPOSE 8080 8081
|
|
|
|
|
|
|
|
USER nifi
|
|
|
|
|
|
|
|
ENTRYPOINT ["/opt/nifi/bin/nifi.sh"]
|
|
|
|
CMD ["run"]
|