[
https://issues.apache.org/jira/browse/NIFI-4057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16090584#comment-16090584
]
ASF subversion and git services commented on NIFI-4057:
-------------------------------------------------------
Commit 3da8b94dddc3b08ecbf10f368240dd1b3e992bbf in nifi's branch
refs/heads/master from [~cricket007]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=3da8b94 ]
NIFI-4057 Docker Image is twice as large as necessary
* Merging unnecessary layers
* MAINTAINER is deprecated
* Using JRE as base since JDK is not necessary
* Set GID=1000 since openjdk image already defines 50
* Add ability to specify Apache mirror site to reduce load on Apache Archive
* Created templates directory since this is not included in the binary
This closes #1910.
Signed-off-by: Aldrin Piri <[email protected]>
> Docker Image is twice as large as necessary
> -------------------------------------------
>
> Key: NIFI-4057
> URL: https://issues.apache.org/jira/browse/NIFI-4057
> Project: Apache NiFi
> Issue Type: Bug
> Components: Docker
> Affects Versions: 1.2.0, 1.3.0
> Reporter: Jordan Moore
> Priority: Minor
> Fix For: 1.4.0
>
>
> By calling {{chown}} as a secondary {{RUN}} command, you effectively double
> the size of image by creating a Docker layer of the same size as the
> extracted binary.
> See GitHub discussion:
> https://github.com/apache/nifi/pull/1372#issuecomment-307592287
> *Expectation*
> The resultant Docker image should be no larger than the Base image + the size
> required by extracting the Nifi binaries.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)