This project contains some examples of how I run NiFi for testing locally.
The following command can be used to start nifi using docker-compose. When nifi is started for the first time it will generate temporary credentials for single userlogin.
These credentials can be seen in the container logs and look like the following
nifi-docker-compose-nifi-1 | Generated Username [some_generated_username]
nifi-docker-compose-nifi-1 | Generated Password [some_generated_password]
These will be required to login to the web interface.
docker-compose up -d
In order to start over the containers will need to be stopped to stopped and the volumes will have to be deleted.
This can be done by using the following commands
docker-compose down
./local_remove_volumes.sh
docker stack deploy --compose-file docker-compose.yml nifi
First, I run the following scripts create-ca.sh
, create-server.sh
, and create-user.sh
to generate
certs for a ca, server, and user.
cd tlsdocker-compose up -d
docker stack deploy --compose-file tls/docker-compose.yml tls-nifi
We are going to generate 3 pairs of certs:
- A certificate authority cert
- A server cert
- A user cert
The following command can be used to establish the CA crt. This example is only for testing, and development because it uses a blank password.
cd certs
./create-ca.sh
The following command can be used to establish the server crt. This example is only for testing, and development because it uses a blank password.
cd certs
./create-server.sh
The following command can be used to establish the user crt. This example is only for testing, and development because it uses a blank password.
cd certs
./create-user.sh