Coder Social home page Coder Social logo

apiri / dockerfile-apache-nifi Goto Github PK

View Code? Open in Web Editor NEW
25.0 5.0 20.0 19 KB

Apache NiFi Dockerfile. This repository is largely deprecated in favor of the community work happening in Apache NiFi. Please see https://hub.docker.com/r/apache/nifi/.

License: Apache License 2.0

Shell 100.00%

dockerfile-apache-nifi's Introduction

Apache NiFi logo

dockerfile-apache-nifi

Version 1.1.2

Apache NiFi Dockerfile

Provides a Dockerfile and associated scripts for configuring an instance of Apache NiFi to run with certificate authentication.

Sample Usage

From your checkout directory:

  1. Build the image

     docker build -t aldrin/apache-nifi .
    
  2. Run the image

     docker run -i -t --rm \
    	 	-p 8443:443 \
     	-v ${cert_path}:/opt/certs \
     	-v $(readlink -f ./authorized-users.xml):/opt/nifi/conf/authorized-users.xml \
     	-e KEYSTORE_PATH=/opt/certs/keystore.jks \
     	-e KEYSTORE_TYPE=JKS \
     	-e KEYSTORE_PASSWORD=password \
     	-e TRUSTSTORE_PATH=/opt/certs/truststore.jks \
     	-e TRUSTSTORE_PASSWORD=password \
     	-e TRUSTSTORE_TYPE=JKS \
     	aldrin/apache-nifi
    

    -p 8443:443 exposes the UI at port 8443 on the Docker host system

    -v ${cert_path}:/opt/certs maps the 'cert_path' location on the host system to the container as the source of the relevant keystores

    -i -t Allocates a TTY and keeps STDIN open

    -v $(readlink -f ./authorized-users.xml):/opt/nifi/conf/authorized-users.xml Maps an authorized-users.xml into the container over the default one provided

  3. Wait for the image to initalize

     2015-03-21 18:14:37,879 INFO [main] org.apache.nifi.web.server.JettyServer NiFi has started. The UI is available at the following URLs:
     2015-03-21 18:14:37,880 INFO [main] org.apache.nifi.web.server.JettyServer https://172.17.0.37:443/nifi
     2015-03-21 18:14:37,880 INFO [main] org.apache.nifi.web.server.JettyServer https://127.0.0.1:443/nifi
     2015-03-21 18:14:37,880 INFO [main] org.apache.nifi.NiFi Controller initialization took 4572051363 nanoseconds.
    
  4. Access through your Docker host system

     https://localhost:8443/nifi
    
  5. Stopping

  • From the terminal used to start the container above, perform a Ctrl+C to send the interrupt to the container.
  • Alternatively, execute a docker command for the container via a docker stop <container id> or docker kill <container id>

Conventions

$NIFI_HOME

  • The Dockerfile specifies an environment variable NIFI_HOME via the ENV command

Volumes

  • The following directories are exposed as volumes which may optionally be mounted to a specified location
    • /opt/certs
    • ${NIFI_HOME}/flowfile_repository
    • ${NIFI_HOME}/content_repository
    • ${NIFI_HOME}/database_repository
    • ${NIFI_HOME}/provenance_repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.