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

Adam Taft commented on NIFI-4057:
---------------------------------

Yes, you're right.  Using the JRE only version might be a good idea as well.  
Maybe use openjdk:jre-8 as the base image?

Are there any JSPs etc. that are dependent on the JDK compiler?  I don't think 
so, but [~mcgilman] would know for sure

Since we're assigning UID=1000, how about GID=1000 to follow tradition?  In 
fact, I would just recommend we don't bother with the group creation at all, 
because calling useradd will create a group with the same GID as the UID by 
default.

> 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