docker run -itd -p 8080-8081:8080-8081 --name nifi martijnz/apache-nifi
10K+
FROM java:8-jre
MAINTAINER Martijn Zwennes <[email protected]>
ENV DIST_MIRROR http://mirror.cc.columbia.edu/pub/software/apache/nifi
ENV NIFI_HOME /opt/nifi
ENV VERSION 0.7.0
# Install necessary packages, create target directory, download and extract, and update the banner to let people know what version they are using
RUN mkdir -p /opt/nifi \
&& curl ${DIST_MIRROR}/${VERSION}/nifi-${VERSION}-bin.tar.gz | tar xvz -C ${NIFI_HOME} --strip-components=1 \
&& sed -i -e "s|^nifi.ui.banner.text=.*$|nifi.ui.banner.text=Docker NiFi ${VERSION}|" ${NIFI_HOME}/conf/nifi.properties \
&& bash -c "mkdir -p $NIFI_HOME/{database_repository,flowfile_repository,content_repository,provenance_repository}" \
&& groupadd nifi \
&& useradd -r -g nifi nifi \
&& chown nifi:nifi -R $NIFI_HOME
# These are the volumes (in order) for the following:
# 1) user access and flow controller history
# 2) FlowFile attributes and current state in the system
# 3) content for all the FlowFiles in the system
# 4) information related to Data Provenance
# You can find more information about the system properties here - https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#system_properties
VOLUME ["$NIFI_HOME/database_repository", \
"$NIFI_HOME/flowfile_repository", \
"$NIFI_HOME/content_repository", \
"$NIFI_HOME/provenance_repository"]
# Open port 8081 for the HTTP listen
USER nifi
WORKDIR $NIFI_HOME
EXPOSE 8080 8081
CMD ["bin/nifi.sh", "run"]
Content type
Unrecognized
Digest
Size
684.4 MB
Last updated
about 10 years ago
docker pull martijnz/apache-nifi