bootstrap/specs/nifi/template
Joshua Potter d08e5a125f Add NiFi spec. 2024-01-22 14:29:14 -07:00
..
.envrc Add NiFi spec. 2024-01-22 14:29:14 -07:00
.gitignore Add NiFi spec. 2024-01-22 14:29:14 -07:00
README.md Add NiFi spec. 2024-01-22 14:29:14 -07:00
flake.lock Add NiFi spec. 2024-01-22 14:29:14 -07:00
flake.nix Add NiFi spec. 2024-01-22 14:29:14 -07:00

README.md

NiFi Dev Shell

This is a small flake template for experimenting with Apache NiFi (version 1.19.0). direnv can be used to a launch a dev shell upon entering this directory (refer to .envrc). Otherwise run via:

$ nix develop

On account of hard-coded relative paths and expectations around file permissions, NiFi is not very Nix-friendly. Instead of making NiFi directly accessible from the shell, we instead use Nix to create a docker image that can then be used to boot NiFi. Do so by running:

$ nix build
$ docker load < result
$ docker run -p 8443:8443 nifi:1.19.0

Once running, open https://localhost:8443/nifi (notice use of the https scheme). You can find your login credentials using:

$ docker exec -it <container-id> grep Generated /opt/nifi/nifi-current/logs/nifi-app.log