add Apache Nifi (#15)
Reviewed-on: #15
This commit was merged in pull request #15.
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
# Apache NiFi Alpine Package
|
||||
|
||||
Repackages Apache NiFi 2.12.0 Standard for Alpine. The package requires Java
|
||||
21 and retains NiFi 2's secure default: HTTPS listens on `127.0.0.1:8443` and
|
||||
uses generated single-user credentials.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
apk add nifi nifi-openrc
|
||||
rc-update add nifi default
|
||||
rc-service nifi start
|
||||
```
|
||||
|
||||
Open `https://127.0.0.1:8443/nifi` and retrieve the generated credentials:
|
||||
|
||||
```sh
|
||||
grep 'Generated \(Username\|Password\)' /var/log/nifi/nifi-app.log
|
||||
```
|
||||
|
||||
Set fixed single-user credentials as the service account:
|
||||
|
||||
```sh
|
||||
doas -u nifi nifi set-single-user-credentials '<username>' '<password>'
|
||||
rc-service nifi restart
|
||||
```
|
||||
|
||||
## Runtime Layout
|
||||
|
||||
```text
|
||||
/usr/bin/nifi Administration command wrapper
|
||||
/usr/lib/nifi NiFi binaries and bundled NARs
|
||||
/etc/nifi Mutable NiFi configuration and authorization state
|
||||
/var/lib/nifi Repositories, state, extensions, and work files
|
||||
/var/log/nifi Application logs
|
||||
/etc/conf.d/nifi OpenRC account defaults
|
||||
/etc/init.d/nifi OpenRC service
|
||||
```
|
||||
|
||||
Edit `/etc/nifi/nifi.properties` to bind a different HTTPS address, configure
|
||||
TLS, or select LDAP, OIDC, or another supported authentication provider.
|
||||
|
||||
## Package Commands
|
||||
|
||||
```sh
|
||||
ALPINE_PACKAGE=nifi mise run apk:checksum
|
||||
ALPINE_PACKAGE=nifi mise run apk:build
|
||||
ALPINE_PACKAGE=nifi SKIP_BUILD=1 mise run apk:test-install
|
||||
ALPINE_PACKAGE=nifi mise run apk:runtime-test
|
||||
```
|
||||
Reference in New Issue
Block a user