1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00
dockerfiles/nifi/README.md

41 lines
962 B
Markdown
Raw Normal View History

2016-07-06 19:57:13 +02:00
nifi
====
[Apache nifi][1] is an easy to use, powerful, and reliable system to process
and distribute data.
![](https://nifi.apache.org/assets/images/flow-th.png)
2019-05-23 10:24:27 +02:00
## up and running
2020-01-10 05:24:28 +02:00
```bash
2021-12-16 05:41:31 +02:00
$ mkdir -p data/nifi/{conf,database_repository,flowfile_repository,content_repository,provenance_repository,state,logs}
2020-05-15 10:42:47 +02:00
$ mkdir -p data/registry/{database,flow_storage,logs}
2019-05-23 10:24:27 +02:00
$ chown -R 1000:1000 data
2021-12-16 05:41:31 +02:00
$ vi docker-compose.yml
volumes:
- ./data/nifi/conf:/tmp
# ./data/nifi/conf:/opt/nifi/nifi-current/conf
$ docker-compose run --rm --entrypoint bash nifi
>>> cp /opt/nifi/nifi-current/conf/* /tmp
>>> exit
$ vi docker-compose.yml
volumes:
# ./data/nifi/conf:/tmp
- ./data/nifi/conf:/opt/nifi/nifi-current/conf
2020-05-15 10:42:47 +02:00
$ docker-compose up -d
$ curl http://127.0.0.1:8080/nifi/
$ curl http://127.0.0.1:18080/nifi-registry/
2019-05-23 10:24:27 +02:00
```
2022-01-20 10:20:33 +02:00
Maybe there are better ways to populate a volume:
- named volumes
- anonymous volumes
2021-12-10 12:23:45 +02:00
2016-07-06 19:57:13 +02:00
[1]: https://nifi.apache.org