[ 
https://issues.apache.org/jira/browse/NIFI-7319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17899532#comment-17899532
 ] 

Robert Golden commented on NIFI-7319:
-------------------------------------

Trying to utilize the apache/nifi container from docker hub, isn't usable 
without the nifi toolkit. Without the nifi toolkit, the following isn't 
possible to configure TLS for a standalone NIFI instance.

I even attempted to build an image with the toolkit installed.

#dockerfile

FROM apache/nifi:2.0.0

# Download and install NiFi Toolkit
RUN curl -O 
https://downloads.apache.org/nifi/2.0.0/nifi-toolkit-2.0.0-bin.tar.gz && \
    tar -xvzf nifi-toolkit-2.0.0-bin.tar.gz -C /opt && \
    rm nifi-toolkit-2.0.0-bin.tar.gz

ENV NIFI_TOOLKIT_HOME=/opt/nifi-toolkit-2.0.0
 # END DOCKERFILE

OUTPUT:

root@nifi ~]# docker build -t nifi-custom:2.0.0 .
[+] Building 125.4s (4/5)                                        docker:default
[+] Building 126.5s (4/5)                                        docker:default
[+] Building 132.6s (5/5) FINISHED                               docker:default
 => [internal] load build definition from dockerfile                       0.0s
 => => transferring dockerfile: 388B                                       0.0s
 => [internal] load metadata for docker.io/apache/nifi:2.0.0               0.9s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [1/2] FROM docker.io/apache/nifi:2.0.0@sha256:cf8f4ce74cf34712766c8  102.7s
 => => resolve docker.io/apache/nifi:2.0.0@sha256:cf8f4ce74cf34712766c8ab  0.0s
 => => sha256:259efce160cc65d9001d9727bf57acc9951498e1 92.69MB / 92.69MB  17.0s
 => => sha256:cf8f4ce74cf34712766c8aba016c0c5efb8f73d6c23 1.61kB / 1.61kB  0.0s
 => => sha256:5d50417fd7890d8d1fa65929495a5f56222c347fe1c 2.21kB / 2.21kB  0.0s
 => => sha256:7e68c4592656c16b2e644490d7d71dd4235ba16e6 22.96kB / 22.96kB  0.0s
 => => sha256:9439c0e98e5f72dba1ea7cf303c3ca61ff9a91b2 55.08MB / 55.08MB  24.1s
 => => sha256:b1dcb5d9cb1285fef59889f84a63924a79a9302aa 15.85MB / 15.85MB  5.7s
 => => sha256:f888149a2b6534970aafbcb847fb5563defe404f5fd 4.77kB / 4.77kB  5.8s
 => => sha256:2e959fd21127ec3a3da4542c7cc403286b538b8 788.59kB / 788.59kB  6.2s
 => => sha256:e94415597c0eeec4624a968d1f0758a7561d74 159.98MB / 159.98MB  41.5s
 => => sha256:c32630280e4122beb792de568fb48edfe25eed0d 27.06MB / 27.06MB  22.9s
 => => sha256:566569aed69acb6beddfdd78d2e15af9a86ee7 716.57MB / 716.57MB  93.6s
 => => extracting sha256:9439c0e98e5f72dba1ea7cf303c3ca61ff9a91b26911886a  4.1s
 => => sha256:2bd0abee8e9a2969642dcb2559e8c5d4f1ee9c2428f769 221B / 221B  24.3s
 => => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6 32B / 32B  24.4s
 => => extracting sha256:b1dcb5d9cb1285fef59889f84a63924a79a9302aaad265e2  1.1s
 => => extracting sha256:259efce160cc65d9001d9727bf57acc9951498e12681ec5d  1.7s
 => => extracting sha256:f888149a2b6534970aafbcb847fb5563defe404f5fdf294e  0.0s
 => => extracting sha256:2e959fd21127ec3a3da4542c7cc403286b538b8dc8b3d1bb  0.0s
 => => extracting sha256:e94415597c0eeec4624a968d1f0758a7561d74ab22513d8  10.8s
 => => extracting sha256:c32630280e4122beb792de568fb48edfe25eed0d288820ae  0.4s
 => => extracting sha256:566569aed69acb6beddfdd78d2e15af9a86ee7dd573daf80  8.9s
 => => extracting sha256:2bd0abee8e9a2969642dcb2559e8c5d4f1ee9c2428f7695b  0.0s
 => => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6  0.0s
 => ERROR [2/2] RUN curl -O https://downloads.apache.org/nifi/2.0.0/nifi  28.9s
------
 > [2/2] RUN curl -O 
https://downloads.apache.org/nifi/2.0.0/nifi-toolkit-2.0.0-bin.tar.gz &&     
tar -xvzf nifi-toolkit-2.0.0-bin.tar.gz -C /opt &&     rm 
nifi-toolkit-2.0.0-bin.tar.gz:
0.300   % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
0.300                                  Dload  Upload   Total   Spent    Left  
Speed
100   196  100   196    0     0    391      0 --:--:-- --:--:-- --:--:--   390
0.813 
0.813 gzip: stdin: not in gzip format
0.813 tar: Child returned status 1
0.813 tar: Error is not recoverable: exiting now
------
dockerfile:4
--------------------
   3 |     # Download and install NiFi Toolkit
   4 | >>> RUN curl -O 
https://downloads.apache.org/nifi/2.0.0/nifi-toolkit-2.0.0-bin.tar.gz && \
   5 | >>>     tar -xvzf nifi-toolkit-2.0.0-bin.tar.gz -C /opt && \
   6 | >>>     rm nifi-toolkit-2.0.0-bin.tar.gz
   7 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c curl -O 
https://downloads.apache.org/nifi/2.0.0/nifi-toolkit-2.0.0-bin.tar.gz &&     
tar -xvzf nifi-toolkit-2.0.0-bin.tar.gz -C /opt &&     rm 
nifi-toolkit-2.0.0-bin.tar.gz" did not complete successfully: exit code: 2

 

Is it possible to obtain a new NIFI 2.0.0 image with nifi tools included? 

 

 

> Provide prescriptive documentation for common tasks
> ---------------------------------------------------
>
>                 Key: NIFI-7319
>                 URL: https://issues.apache.org/jira/browse/NIFI-7319
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Documentation & Website
>    Affects Versions: 1.11.4
>            Reporter: Andy LoPresto
>            Assignee: Andy LoPresto
>            Priority: Major
>              Labels: community, configuration, documentation, flow_design, 
> prescriptive_docs, security
>          Time Spent: 9.5h
>  Remaining Estimate: 0h
>
> There are a number of common tasks which community members frequently have 
> trouble understanding and performing. Assisting users with these tasks 
> requires a high level of knowledge, dedicated time and effort, and is often 
> 1:1 rather than scalable. 
> Existing NiFi documentation is descriptive (i.e. a compendium of reference 
> material) but rarely _prescriptive_ (i.e. step-by-step guides to performing 
> these tasks). I propose adding another document which collects these 
> walkthrough instructions for representative tasks. 
> Each section should include:
> * A brief description of the scenario
> * A brief description of why a user would undertake this action
> * A baseline starting point to ensure consistency
> * The expected outcome after completing these steps
> * Possible errors encountered or common mistakes called out
> * Detailed sequential actions to take
> ** Exact terminal commands or UI/API actions to take
> ** An explanation of each step
> ** Screenshots when possible
> ** Output/expected result for each step
> Example topics:
> # Configuring TLS for a standalone NiFi instance
> # Configuring TLS for a NiFi cluster
> # Configuring LDAP authentication & authorization for NiFi
> # Configuring Kerberos authentication & authorization for NiFi
> # Building a flow which uses the {{Wait}}/{{Notify}} processors
> # Building a flow which uses the {{*Record}} processors
> # Converting a legacy flow which used individual flowfile processing to use 
> the {{*Record}} processors
> # Deploying NiFi on Kubernetes via Docker containers
> # Configuring TLS for NiFi Registry (and integrating with TLS NiFi)
> # Configuring LDAP authentication & authorization for NiFi Registry



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to