You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2025/10/29 13:33:00 UTC

[jira] [Resolved] (NIFI-15138) Fix UndefinedVar warning for the NiFi Docker build

     [ https://issues.apache.org/jira/browse/NIFI-15138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Handermann resolved NIFI-15138.
-------------------------------------
    Fix Version/s: 2.7.0
       Resolution: Fixed

> Fix UndefinedVar warning for the NiFi Docker build
> --------------------------------------------------
>
>                 Key: NIFI-15138
>                 URL: https://issues.apache.org/jira/browse/NIFI-15138
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Docker
>            Reporter: Chun-Sheng, Li
>            Assignee: Chun-Sheng, Li
>            Priority: Minor
>             Fix For: 2.7.0
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> When running the following command to build the NiFi Docker image, it will present the undefined variable warning.
> {code:java}
> $ docker build -t apache/nifi:latest .
> [+] Building 35.9s (6/15)                                                                    docker:default
>  => [internal] load build definition from Dockerfile                                                   0.0s
>  => => transferring dockerfile: 5.09kB
> ......
>  4 warnings found (use docker --debug to expand):
>  - UndefinedVar: Usage of undefined variable '$DISTRO_PATH' (line 32)
>  - UndefinedVar: Usage of undefined variable '$NIFI_BINARY_PATH' (line 33)
>  - UndefinedVar: Usage of undefined variable '$NIFI_TOOLKIT_BINARY_PATH' (line 34)
>  - UndefinedVar: Usage of undefined variable '$MIRROR_BASE_URL' (line 31) {code}
> To fix these undefined vairables issue, it should declare vairable before using and assigning the value to this variable.
> Once resolving this issue, it can let users without confusing with these warnings.
> The useful reference is available [here|https://docs.docker.com/reference/build-checks/undefined-var/].



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