Community Articles

Find and share helpful community-sourced technical articles.
Labels (2)
avatar
Master Guru

Apache NiFi 1.1.0 is now available and once again I want to test it in a isolated environment. Docker!

The steps to do this are extremely similar to what has been detailed here (https://community.hortonworks.com/articles/69043/launching-a-nifi-docker-instance.html)

Pull the image

docker pull sunileman/nifi1.1.0

You may find the mirror site is not optimal based on your location. Go here and grab your mirror site. Update MIRROR_SITE parameter in the Dockerfile with your mirror site. The Dockerfile is available here. If you update the Dockerfile you will have to build an image. Do this by running

docker build --no-cache -t sunileman/nifi1.1.0 .

Whether you pulled the image or built a new one, run this to launch Apache NiFi 1.1.0

docker run -it --rm -p 8080-8081:8080-8081 sunileman/nifi1.1.0

NiFi UI should be available here

http://localhost:8080/nifi/

Have fun!

8,731 Views
Comments
avatar

Hi Sunile, Thanks for sharing the docker file. I have created my own docker file and running it on openstack VM following same docker run concept.

  1. docker run -it --rm -p 8080-8081:8080-8081 sunileman/nifi1.1.0 It takes 7 minutes to open nifi GUI. Unable to understand why initialization takes so long ?
  2. Once docker container is started. I am doing docker stop nifi. it stops the container. Now docker start nifi start the container as i can check using docker ps. but i could not launch my nifi GUI and container vanishes after 7 minutes. " Attached herewith my Dockerfile and supporting script.

nifi.tar.gz

avatar

Hi @smanjee - did you set up any automation to push your nar files into the nifi docker container on build?