-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-Nifi-Registry
121 lines (105 loc) · 3.46 KB
/
Dockerfile-Nifi-Registry
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
FROM apache/nifi-registry:${NIFI_REGISTRY_VERSION:-1.18.0}
ARG BUILD_DATE
ARG BUILD_VERSION
ARG GIT_COMMIT
ARG GIT_URL
ENV VENDOR="DevOpsCornerId"
ENV AUTHOR="DevOpsCorner.id <[email protected]>"
ENV IMG_NAME="nifi-registry"
ENV IMG_VERSION="1.18.0"
ENV IMG_DESC="Docker Image Nifi Registry 1.18.0"
ENV IMG_ARCH="amd64/x86_64"
ARG NIFI_REGISTRY_VERSION=1.18.0
ARG MIRROR=https://archive.apache.org/dist
ENV NIFI_REGISTRY_BASE_DIR=/opt/nifi-registry
ENV NIFI_REGISTRY_HOME=/opt/nifi-registry/nifi-registry-current
ENV NIFI_REGISTRY_BINARY=nifi-registry-1.18.0-bin.zip
ENV NIFI_REGISTRY_BINARY_PATH=nifi/1.18.0/nifi-registry-1.18.0-bin.zip
ENV NIFI_REGISTRY_BINARY_URL=https://downloads.apache.org/nifi/1.18.0/nifi-registry-1.18.0-bin.zip
ENV AWS_CLI_VERSION=2.9.1
ENV VERIFY_CHECKSUM=false
LABEL maintainer="$AUTHOR" \
architecture="$IMG_ARCH" \
nifi-registry-version="$NIFI_REGISTRY_VERSION" \
org.label-schema.build-date="$BUILD_DATE" \
org.label-schema.name="$IMG_NAME" \
org.label-schema.description="$IMG_DESC" \
org.label-schema.vcs-ref="$GIT_COMMIT" \
org.label-schema.vcs-url="$GIT_URL" \
org.label-schema.vendor="$VENDOR" \
org.label-schema.version="$BUILD_VERSION" \
org.label-schema.schema-version="$IMG_VERSION" \
org.opencontainers.image.authors="$AUTHOR" \
org.opencontainers.image.description="$IMG_DESC" \
org.opencontainers.image.vendor="$VENDOR" \
org.opencontainers.image.version="$IMG_VERSION" \
org.opencontainers.image.revision="$GIT_COMMIT" \
org.opencontainers.image.created="$BUILD_DATE" \
fr.hbis.docker.base.build-date="$BUILD_DATE" \
fr.hbis.docker.base.name="$IMG_NAME" \
fr.hbis.docker.base.vendor="$VENDOR" \
fr.hbis.docker.base.version="$BUILD_VERSION"
# COPY rootfs /
ENV DEBIAN_FRONTEND noninteractive
USER root
RUN apt-get -o APT::Sandbox::User=root update; sync
RUN apt-get install -y \
git \
curl \
zip \
unzip \
wget; sync
RUN apt-get install -y \
bash \
jq \
apt-transport-https \
ca-certificates \
openssl \
openssh-server \
openssh-client \
net-tools \
vim-tiny \
telnet \
nano \
libffi-dev \
bzip2 \
python3-minimal \
python3-distutils \
python3-pip \
python3-apt \
iputils-ping; sync
# =================== #
# Install AWSCli v2 #
# =================== #
RUN curl -s https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWS_CLI_VERSION}.zip -o awscliv2.zip &&\
unzip awscliv2.zip; sync &&\
./aws/install --bin-dir /usr/local/bin/; sync
# COPY --from=devopscorner/aws-cli:latest /usr/local/aws-cli/ /usr/local/aws-cli/
# COPY --from=devopscorner/aws-cli:latest /usr/local/bin/ /usr/local/bin/
# ========================= #
# Install Python Libraries #
# ========================= #
RUN python3 -m pip install pip &&\
pip3 install --upgrade pip==22.3.1 cffi &&\
pip3 install --no-cache-dir \
PyYaml \
Jinja2 \
httplib2 \
six \
requests \
boto3 \
pandas==1.3.5 \
beautifulsoup4==4.9.3 \
lxml==4.6.3 \
scrapy==2.6.2 \
SQLAlchemy==1.4.43 \
psycopg2-binary \
ivy-core &&\
# setup root .ssh directory
mkdir -p /root/.ssh &&\
chmod 0700 /root/.ssh &&\
chown -R root. /root/.ssh; sync
RUN chmod +x /tmp/*.sh
RUN apt-get clean; sync
WORKDIR /opt/nifi-registry/nifi-registry-current
EXPOSE 22 18080