mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-28 09:41:20 +00:00
update nifi
This commit is contained in:
parent
e0be188adf
commit
0dac7b513a
@ -9,14 +9,29 @@ and distribute data.
|
|||||||
## up and running
|
## up and running
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mkdir -p data/nifi/{conf/archive,database_repository,flowfile_repository,content_repository,provenance_repository,state,logs}
|
$ mkdir -p data/nifi/{conf,database_repository,flowfile_repository,content_repository,provenance_repository,state,logs}
|
||||||
$ mkdir -p data/registry/{database,flow_storage,logs}
|
$ mkdir -p data/registry/{database,flow_storage,logs}
|
||||||
$ chown -R 1000:1000 data
|
$ chown -R 1000:1000 data
|
||||||
|
|
||||||
|
$ 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
|
||||||
|
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
$ curl http://127.0.0.1:8080/nifi/
|
$ curl http://127.0.0.1:8080/nifi/
|
||||||
$ curl http://127.0.0.1:18080/nifi-registry/
|
$ curl http://127.0.0.1:18080/nifi-registry/
|
||||||
```
|
```
|
||||||
|
|
||||||
> :warning: upgrade seems very hard
|
> I copied config files from a temporary container. Maybe there are better ways.
|
||||||
|
|
||||||
[1]: https://nifi.apache.org
|
[1]: https://nifi.apache.org
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
services:
|
services:
|
||||||
nifi:
|
nifi:
|
||||||
image: apache/nifi:1.15.0
|
image: apache/nifi:1.15.1
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
- "8082:8082"
|
- "8082:8082"
|
||||||
|
@ -3,11 +3,11 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
nifi:
|
nifi:
|
||||||
image: apache/nifi:1.15.0
|
image: apache/nifi:1.15.1
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
# ./data/nifi/conf:/tmp # docker-compose run --rm --entrypoint bash nifi
|
# ./data/nifi/conf:/tmp
|
||||||
- ./data/nifi/conf:/opt/nifi/nifi-current/conf
|
- ./data/nifi/conf:/opt/nifi/nifi-current/conf
|
||||||
- ./data/nifi/database_repository:/opt/nifi/nifi-current/database_repository
|
- ./data/nifi/database_repository:/opt/nifi/nifi-current/database_repository
|
||||||
- ./data/nifi/flowfile_repository:/opt/nifi/nifi-current/flowfile_repository
|
- ./data/nifi/flowfile_repository:/opt/nifi/nifi-current/flowfile_repository
|
||||||
@ -25,7 +25,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
registry:
|
registry:
|
||||||
image: apache/nifi-registry:1.15.0
|
image: apache/nifi-registry:1.15.1
|
||||||
ports:
|
ports:
|
||||||
- "18080:18080"
|
- "18080:18080"
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -12,10 +12,21 @@ server {
|
|||||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||||
location / {
|
location / {
|
||||||
|
if ($request_uri ~* "\/\/") {
|
||||||
|
rewrite ^/(.*) $scheme://$host/$1 permanent; # FIXME: squeeze forward slash
|
||||||
|
}
|
||||||
proxy_set_header X-ProxyScheme https;
|
proxy_set_header X-ProxyScheme https;
|
||||||
proxy_set_header X-ProxyHost $host;
|
proxy_set_header X-ProxyHost $host;
|
||||||
proxy_set_header X-ProxyPort 443;
|
proxy_set_header X-ProxyPort 443;
|
||||||
proxy_set_header X-ProxyContextPath /;
|
proxy_set_header X-ProxyContextPath /;
|
||||||
proxy_pass http://127.0.0.1:8080;
|
proxy_pass http://127.0.0.1:8080;
|
||||||
}
|
}
|
||||||
|
location /nifi-registry {
|
||||||
|
proxy_set_header Origin http://172.16.1.9:18080;
|
||||||
|
proxy_set_header X-ProxyScheme https;
|
||||||
|
proxy_set_header X-ProxyHost $host;
|
||||||
|
proxy_set_header X-ProxyPort 443;
|
||||||
|
proxy_set_header X-ProxyContextPath /;
|
||||||
|
proxy_pass http://127.0.0.1:18080;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user