mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add nifi
This commit is contained in:
parent
92c7a7d4e5
commit
eee4ca3a07
@ -68,6 +68,7 @@ A collection of delicious docker recipes.
|
||||
- [x] mosquitto
|
||||
- [x] motion-arm :+1:
|
||||
- [x] nginx
|
||||
- [x] nifi
|
||||
- [x] nullmailer
|
||||
- [x] nullmailer-arm
|
||||
- [x] openssh
|
||||
|
34
nifi/Dockerfile
Normal file
34
nifi/Dockerfile
Normal file
@ -0,0 +1,34 @@
|
||||
#
|
||||
# Dockerfile for nifi
|
||||
#
|
||||
|
||||
FROM java:8-jre-alpine
|
||||
MAINTAINER kev <noreply@easypi.info>
|
||||
|
||||
ENV NIFI_VERSION 0.6.1
|
||||
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
|
||||
|
||||
WORKDIR $NIFI_HOME
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache bash curl tar \
|
||||
&& curl -sSL ${NIFI_URL} | tar xz --strip-components=1 \
|
||||
&& apk del curl tar \
|
||||
&& addgroup -g 1000 nifi \
|
||||
&& adduser -h ${NIFI_HOME} -s /bin/bash -G nifi -u 1000 -D -H nifi \
|
||||
&& mkdir -p content_repository database_repository flowfile_repository provenance_repository \
|
||||
&& chown -R nifi:nifi ${NIFI_HOME}
|
||||
|
||||
VOLUME ${NIFI_HOME}/content_repository \
|
||||
${NIFI_HOME}/database_repository \
|
||||
${NIFI_HOME}/flowfile_repository \
|
||||
${NIFI_HOME}/provenance_repository
|
||||
|
||||
EXPOSE 8080 8081
|
||||
|
||||
USER nifi
|
||||
|
||||
ENTRYPOINT ["/opt/nifi/bin/nifi.sh"]
|
||||
CMD ["run"]
|
10
nifi/README.md
Normal file
10
nifi/README.md
Normal file
@ -0,0 +1,10 @@
|
||||
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)
|
||||
|
||||
[1]: https://nifi.apache.org
|
||||
|
11
nifi/docker-compose.yml
Normal file
11
nifi/docker-compose.yml
Normal file
@ -0,0 +1,11 @@
|
||||
nifi:
|
||||
image: vimagick/nifi
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "8081:8081"
|
||||
volumes:
|
||||
- ./data/content_repository:/opt/nifi/content_repository
|
||||
- ./data/database_repository:/opt/nifi/database_repository
|
||||
- ./data/flowfile_repository:/opt/nifi/flowfile_repository
|
||||
- ./data/provenance_repository:/opt/nifi/provenance_repository
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user