Skip to content

An example of several proxies in front of Apache NiFi, all running in docker containers.

License

Notifications You must be signed in to change notification settings

jtstorck/proxy-nifi-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proxy-nifi-docker

An example of several proxies in front of Apache NiFi, all running in docker containers.

Build the NiFi dockermaven image

From the clone of the Apache NiFi repository, on the appropriate branch:

  1. mvn clean install -Pcontrib-check
  2. mvn install -pl nifi-docker/dockermaven/pom.xml -Pdocker
  3. docker images
    Confirm the NiFi 1.9.0-SNAPSHOT docker image exists:
    $ docker images
    REPOSITORY             TAG                          IMAGE ID            CREATED             SIZE
    apache/nifi            1.9.0-SNAPSHOT-dockermaven   119e30c23439        5 minutes ago       1.82GB
    

Starting the containers

  • ./scripts/start.sh

Watching the logs

  • docker-compose -f knox-dev-docker/docker-compose.yml logs -f
  • docker-compose -f docker-compose-anonymous-nifi.yaml logs -f

Accessing NiFi

Verifying proxy functionality

  1. Go to url: http://nifi.docker.localhost/traefik/nifi/
    Traefik uses X-Forwarded-Host/X-Forwarded-Prefix:
    1. Add several processors and connect them
    2. Verify that the processors can be moved on the canvas
    3. Open the processor configuration for any of the processors
    4. View Usage for any of the processors on the canvas
  2. Go to url: https://localhost:8443/gateway/nifi/nifi-app/nifi
    Knox uses X-Forwarded-Host/X-Forwarded-Context:
    1. Add several processors and connect them
    2. Verify that the processors can be moved on the canvas
    3. Open the processor configuration for any of the processors
    4. View Usage for any of the processors on the canvas
  3. Go to url: http://nginx.docker.localhost:8081/nifi/
    Nginx is configured to use X-ProxyHost/X-ProxyContextPath:
    1. Add several processors and connect them
    2. Verify that the processors can be moved on the canvas
    3. Open the processor configuration for any of the processors
    4. View Usage for any of the processors on the canvas

Stopping the containers

  • ./scripts/stop.sh

About

An example of several proxies in front of Apache NiFi, all running in docker containers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages