anchor.diff:  = Docker Apache NiFi
   Mike Kobit <https://github.com/mkobit[@mkobit]
   :toc: preamble
  -
  -image:https://img.shields.io/badge/license-MIT-blue.svg[
  -title="MIT license", alt="MIT License"]
  -image:https://travis-ci.org/mkobit/docker-nifi.svg?branch=master[title="Build
  -Status", alt="Build Status", link="https://travis-ci.org/mkobit/docker-nifi"]
  -image:https://img.shields.io/docker/stars/mkobit/nifi.svg[title="Docker repository stars",
  -alt="Stars on Docker Hub", link="https://hub.docker.com/r/mkobit/nifi/"]
  -image:https://img.shields.io/docker/pulls/mkobit/nifi.svg[title="Docker image
  -pulls", alt="Docker image pulls", link="https://hub.docker.com/r/mkobit/nifi/"]
  -image:https://img.shields.io/github/issues/mkobit/docker-nifi.svg[
  -title="Github issues", alt="Github issues",
  -link="https://github.com/mkobit/docker-nifi/issues"]
  -
  -This is an unofficial https://nifi.apache.org/[Apache NiFi] Docker image. The
  -images are built by https://travis-ci.org/mkobit/docker-nifi[Travis CI] and are
  -available on https://hub.docker.com/r/mkobit/nifi/[Docker Hub at mkobit/nifi].
  +ifdef::env-github[:badges:]
  +:uri-github: https://github.com/mkobit/docker-nifi
  +:uri-github-issues: {uri-github}/issues
  +:uri-imagelayers: https://imagelayers.io
  +:uri-travis-ci: https://travis-ci.org/mkobit/docker-nifi
  +:uri-docker-hub: https://hub.docker.com/r/mkobit/nifi
  +:uri-imagelayers-badge: https://badge.imagelayers.io/mkobit/nifi
  +:uri-nifi: https://nifi.apache.org
  +:uri-nifi-docs: {uri-nifi}/docs/nifi-docs
  +:uri-nifi-docs-dev-guide: {uri-nifi-docs}
  +:uri-nifi-jira: https://issues.apache.org/jira/browse/NIFI
  +:uri-nifi-mailing-lists: {uri-nifi}/mailing_lists.html
  +:uri-github-nifi: https://github.com/apache/nifi
  +:uri-shields: https://img.shields.io
  +:uri-shields-mit: {uri-shields}/badge/license-MIT-blue.svg
  +:uri-shields-docker-stars: {uri-shields}/docker/stars/mkobit/nifi.svg
  +:uri-shields-docker-pulls: {uri-shields}/docker/pulls/mkobit/nifi.svg
  +:uri-shields-github-issues: {uri-shields}/github/issues/mkobit/docker-nifi.svg
  +
  +//ifdef::badges[]
  +image:{uri-shields-mit}[title="MIT license", alt="MIT License"]
  +image:https://travis-ci.org/mkobit/docker-nifi.svg?branch=master[title="Build Status", alt="Build Status", link="https://travis-ci.org/mkobit/docker-nifi"]
  +image:{uri-shields-docker-stars}[title="Docker repository stars", alt="Stars on Docker Hub", link="https://hub.docker.com/r/mkobit/nifi/"]
  +image:{uri-shields-docker-pulls}[title="Docker image pulls", alt="Docker image pulls", link="https://hub.docker.com/r/mkobit/nifi/"]
  +image:{uri-shields-github-issues}[title="Github issues", alt="Github issues", link="https://github.com/mkobit/docker-nifi/issues"]
  +//endif::[]
  +
  +This is an unofficial https://nifi.apache.org/[Apache NiFi] Docker image.
  +The images are built by {uri-travis-ci}[Travis CI] and are available on {uri-docker-hub}[Docker Hub at mkobit/nifi].
   
   == Images
   
   [cols=2, options="header"]
   |===
   | Image
  -| Image Size (by https://imagelayers.io[imagelayers.io])
  +| Image Size (by {uri-imagelayers}[imagelayers.io])
   
   | `mkobit/nifi:latest`
  -| image:https://badge.imagelayers.io/mkobit/nifi:latest.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:latest"]
  +| image:{uri-imagelayers-badge}:latest.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:latest"]
   
   | `mkobit/nifi:0.5.1-openjdk-9`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.5.1-openjdk-9.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.5.1-openjdk-9"]
  +| image:{uri-imagelayers-badge}:0.5.1-openjdk-9.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.5.1-openjdk-9"]
   
   | `mkobit/nifi:0.5.1-openjdk-8`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.5.1-openjdk-8.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.5.1-openjdk-8"]
  +| image:{uri-imagelayers-badge}:0.5.1-openjdk-8.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.5.1-openjdk-8"]
   
   | `mkobit/nifi:0.5.1-openjdk-7`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.5.1-openjdk-7.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.5.1-openjdk-7"]
  +| image:{uri-imagelayers-badge}:0.5.1-openjdk-7.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.5.1-openjdk-7"]
   
   | `mkobit/nifi:0.5.1-oracle-java8`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.5.1-oracle-java8.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.5.1-oracle-java8"]
  +| image:{uri-imagelayers-badge}:0.5.1-oracle-java8.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.5.1-oracle-java8"]
   
   | `mkobit/nifi:0.5.1-oracle-java7`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.5.1-oracle-java7.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.5.1-oracle-java7"]
  +| image:{uri-imagelayers-badge}:0.5.1-oracle-java7.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.5.1-oracle-java7"]
   
   | `mkobit/nifi:0.5.0-openjdk-9`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.5.0-openjdk-9.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.5.0-openjdk-9"]
  +| image:{uri-imagelayers-badge}:0.5.0-openjdk-9.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.5.0-openjdk-9"]
   
   | `mkobit/nifi:0.5.0-openjdk-8`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.5.0-openjdk-8.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.5.0-openjdk-8"]
  +| image:{uri-imagelayers-badge}:0.5.0-openjdk-8.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.5.0-openjdk-8"]
   
   | `mkobit/nifi:0.5.0-openjdk-7`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.5.0-openjdk-7.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.5.0-openjdk-7"]
  +| image:{uri-imagelayers-badge}:0.5.0-openjdk-7.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.5.0-openjdk-7"]
   
   | `mkobit/nifi:0.5.0-oracle-java8`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.5.0-oracle-java8.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.5.0-oracle-java8"]
  +| image:{uri-imagelayers-badge}:0.5.0-oracle-java8.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.5.0-oracle-java8"]
   
   | `mkobit/nifi:0.5.0-oracle-java7`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.5.0-oracle-java7.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.5.0-oracle-java7"]
  +| image:{uri-imagelayers-badge}:0.5.0-oracle-java7.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.5.0-oracle-java7"]
   
   | `mkobit/nifi:0.4.1-openjdk-9`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.4.1-openjdk-9.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.4.1-openjdk-9"]
  +| image:{uri-imagelayers-badge}:0.4.1-openjdk-9.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.4.1-openjdk-9"]
   
   | `mkobit/nifi:0.4.1-openjdk-8`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.4.1-openjdk-8.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.4.1-openjdk-8"]
  +| image:{uri-imagelayers-badge}:0.4.1-openjdk-8.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.4.1-openjdk-8"]
   
   | `mkobit/nifi:0.4.1-openjdk-7`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.4.1-openjdk-7.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.4.1-openjdk-7"]
  +| image:{uri-imagelayers-badge}:0.4.1-openjdk-7.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.4.1-openjdk-7"]
   
   | `mkobit/nifi:0.4.1-oracle-java8`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.4.1-oracle-java8.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.4.1-oracle-java8"]
  +| image:{uri-imagelayers-badge}:0.4.1-oracle-java8.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.4.1-oracle-java8"]
   
   | `mkobit/nifi:0.4.1-oracle-java7`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.4.1-oracle-java7.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.4.1-oracle-java7"]
  +| image:{uri-imagelayers-badge}:0.4.1-oracle-java7.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.4.1-oracle-java7"]
   
   | `mkobit/nifi:0.4.0-openjdk-9`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.4.0-openjdk-9.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.4.0-openjdk-9"]
  +| image:{uri-imagelayers-badge}:0.4.0-openjdk-9.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.4.0-openjdk-9"]
   
   | `mkobit/nifi:0.4.0-openjdk-8`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.4.0-openjdk-8.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.4.0-openjdk-8"]
  +| image:{uri-imagelayers-badge}:0.4.0-openjdk-8.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.4.0-openjdk-8"]
   
   | `mkobit/nifi:0.4.0-openjdk-7`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.4.0-openjdk-7.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.4.0-openjdk-7"]
  +| image:{uri-imagelayers-badge}:0.4.0-openjdk-7.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.4.0-openjdk-7"]
   
   | `mkobit/nifi:0.4.0-oracle-java8`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.4.0-oracle-java8.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.4.0-oracle-java8"]
  +| image:{uri-imagelayers-badge}:0.4.0-oracle-java8.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.4.0-oracle-java8"]
   
   | `mkobit/nifi:0.4.0-oracle-java7`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.4.0-oracle-java7.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.4.0-oracle-java7"]
  +| image:{uri-imagelayers-badge}:0.4.0-oracle-java7.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.4.0-oracle-java7"]
   
   | `mkobit/nifi:0.3.0`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.3.0.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.3.0"]
  +| image:{uri-imagelayers-badge}:0.3.0.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.3.0"]
   
   | `mkobit/nifi:0.2.1`
  -| image:https://badge.imagelayers.io/mkobit/nifi:0.2.1.svg[title="Image layers and size", alt="Image layers and size",link="https://imagelayers.io/?images=mkobit%2Fnifi:0.2.1"]
  +| image:{uri-imagelayers-badge}:0.2.1.svg[title="Image layers and size", alt="Image layers and size",link="{uri-imagelayers}?images=mkobit%2Fnifi:0.2.1"]
   |===
   
   == Example
  
positive.code: === Building
  
  The main entrypoint for building is the link:make_docker.py[_make_docker.py_] file.
  The Python script makes use of link:https://docs.python.org/3/library/subprocess.html[`subrocess`], link:https://docs.python.org/3/library/string.html#template-strings[`string.Template`], and link:https://docs.python.org/3/howto/argparse.html[`argparse`].
  
  The build is essentially divided into 3 phases, which are all mapped to different subcommands:
  
  
negative.code: 
  == Usage
  
  This image can either be used as a base image for building on top of NiFi or just to experiment with.
  I personally have not attempted to use this in a production use case.
  
  == Issues
  
  If you have any problems, comments, or questions with this image, feel free to reach out at {uri-github}[mkobit/docker-nifi].
  If you have Apache NiFi specific questions or concerns you can reach out on one of the {uri-nifi-mailing-lists}[community mailing lists].
  
  == Contributing to this repository
  
  Contributing changes to this repository is extremely welcome.
  If it is a larger change, it is usually best to discuss your plans first.
  Please see the {uri-github-issues}[issues] to see if a similar issue already exists.
  
  == Contributing to NiFi
  
  The Apache NiFi source code can be found on Github at {uri-github-nifi}[apache/nifi].
  You can browse issues related to the project on the {uri-nifi-jira}[Apache NiFi Jira].
  