1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update nifi

This commit is contained in:
kev 2020-01-10 11:24:28 +08:00
parent 5a42674398
commit e39fc37b9c
5 changed files with 49 additions and 29 deletions

View File

@ -5,7 +5,7 @@
FROM java:8-jre-alpine
MAINTAINER kev <noreply@easypi.pro>
ENV NIFI_VERSION 0.6.1
ENV NIFI_VERSION 1.10.0
ENV NIFI_FILE nifi-${NIFI_VERSION}-bin.tar.gz
ENV NIFI_URL https://archive.apache.org/dist/nifi/${NIFI_VERSION}/${NIFI_FILE}
ENV NIFI_HOME /opt/nifi

View File

@ -9,11 +9,11 @@ and distribute data.
## up and running
```
```bash
$ docker-compose up -d
$ chown -R 1000:1000 data
$ docker-compose restart
$ curl http://127.0.0.1:8080
```
[1]: https://nifi.apache.org

View File

@ -8,7 +8,7 @@ LABEL site="https://nifi.apache.org"
ARG UID=1000
ARG GID=1000
ARG NIFI_VERSION=1.9.0
ARG NIFI_VERSION=1.10.0
ARG BASE_URL=https://archive.apache.org/dist
ARG MIRROR_BASE_URL=${MIRROR_BASE_URL:-${BASE_URL}}
ARG NIFI_BINARY_PATH=${NIFI_BINARY_PATH:-/nifi/${NIFI_VERSION}/nifi-${NIFI_VERSION}-bin.zip}

View File

@ -0,0 +1,25 @@
nifi:
image: apache/nifi
ports:
- "8080:8080"
- "8082:8082"
- "10000:10000"
environment:
- NIFI_WEB_HTTP_PORT=8080
- NIFI_CLUSTER_IS_NODE=true
- NIFI_CLUSTER_NODE_PROTOCOL_PORT=8082
- NIFI_REMOTE_INPUT_SOCKET_PORT=10000
- NIFI_ZK_CONNECT_STRING=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
- NIFI_ELECTION_MAX_WAIT=1 min
- NIFI_ELECTION_MAX_CANDIDATES=2
- NIFI_JVM_HEAP_INIT=512m
- NIFI_JVM_HEAP_MAX=1g
extra_hosts:
- zookeeper1:10.0.0.21
- zookeeper2:10.0.0.22
- zookeeper3:10.0.0.23
# nifi1:10.0.0.11
- nifi2:10.0.0.12
- nifi3:10.0.0.13
hostname: nifi1
restart: unless-stopped

View File

@ -1,25 +1,20 @@
nifi:
image: apache/nifi
ports:
- "8080:8080"
- "8082:8082"
- "10000:10000"
environment:
- NIFI_WEB_HTTP_PORT=8080
- NIFI_CLUSTER_IS_NODE=true
- NIFI_CLUSTER_NODE_PROTOCOL_PORT=8082
- NIFI_REMOTE_INPUT_SOCKET_PORT=10000
- NIFI_ZK_CONNECT_STRING=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
- NIFI_ELECTION_MAX_WAIT=1 min
- NIFI_ELECTION_MAX_CANDIDATES=2
- NIFI_JVM_HEAP_INIT=512m
- NIFI_JVM_HEAP_MAX=1g
extra_hosts:
- zookeeper1:10.0.0.21
- zookeeper2:10.0.0.22
- zookeeper3:10.0.0.23
# nifi1:10.0.0.11
- nifi2:10.0.0.12
- nifi3:10.0.0.13
hostname: nifi1
restart: always
version: "3.7"
services:
nifi:
image: apache/nifi:1.10.0
ports:
- "8080:8080"
volumes:
- ./data/conf/archive:/opt/nifi/nifi-current/conf/archive
- ./data/database_repository:/opt/nifi/nifi-current/database_repository
- ./data/flowfile_repository:/opt/nifi/nifi-current/flowfile_repository
- ./data/content_repository:/opt/nifi/nifi-current/content_repository
- ./data/provenance_repository:/opt/nifi/nifi-current/provenance_repository
- ./data/state:/opt/nifi/nifi-current/state
- ./data/logs:/opt/nifi/nifi-current/logs
environment:
- NIFI_WEB_HTTP_PORT=8080
- NIFI_JVM_HEAP_INIT=8g
- NIFI_JVM_HEAP_MAX=16g
hostname: nifi
restart: unless-stopped