-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
20 lines (15 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM centos:centos7
MAINTAINER Aldrin Piri <[email protected]>
ENV DIST_MIRROR http://mirror.cc.columbia.edu/pub/software/apache/nifi
ENV NIFI_HOME /opt/nifi
ENV VERSION 1.1.2
# Install necessary packages, create target directory, download and extract, and update the banner to let people know what version they are using
RUN yum install -y java-1.8.0-openjdk tar && \
mkdir -p /opt/nifi && \
curl ${DIST_MIRROR}/${VERSION}/nifi-${VERSION}-bin.tar.gz | tar xvz -C ${NIFI_HOME} --strip-components=1 && \
sed -i -e "s|^nifi.ui.banner.text=.*$|nifi.ui.banner.text=Docker NiFi ${VERSION}|" ${NIFI_HOME}/conf/nifi.properties
# Expose web port
EXPOSE 80 443
VOLUME ["/opt/certs", "${NIFI_HOME}/flowfile_repository", "${NIFI_HOME}/database_repository", "${NIFI_HOME}/content_repository", "${NIFI_HOME}/provenance_repository"]
ADD ./sh/ /opt/sh
CMD ["/opt/sh/start.sh"]