[
https://issues.apache.org/jira/browse/NIFI-15138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Stieglitz updated NIFI-15138:
------------------------------------
Summary: Fix UndefinedVar warning for the NiFi Docker build (was: Fix
UndefinedVar warning for the NiFi Dokcer build)
> 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
> Time Spent: 10m
> 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)