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

Jordan Moore commented on NIFI-4057:
------------------------------------

Just want to mention, I'm already working on this, and have a resultant 1.29 GB 
image. 

bq. GID=50 already exists in openjdk:8 (staff). Why are we attempting to use 
and rename an existing group? Just create a new group and be done with it?

Completely agree. Open to suggestions for alternative numbers.

bq.  Consolidate the "Setup NiFi user" into a single layer. Combine any 
groupadd, useradd, mkdir, chown statements into a single RUN layer.

Did that. 

bq. Update the deprecated MAINTAINER statement with "LABEL maintainer"

Forgot about that, but will fix. 

Also want to point out that {{openjdk:8}} is the JDK, whereas you only need the 
JRE. 

> 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
>
> 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.3.15#6346)

Reply via email to