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

Attila Doroszlai commented on RANGER-5158:
------------------------------------------

Thanks a lot [~abhi_2110] for testing this.  When building the {{ranger}} image 
on top if this, we will need to remove the custom definition of JAVA_HOME from 
{{dev-support/ranger-docker/Dockerfile.ranger}}:

{code}
ENV 
JAVA_HOME=/usr/lib/jvm/java-1.${RANGER_ADMIN_JAVA_VERSION}.0-openjdk-${TARGETARCH}
{code}

since JAVA_HOME comes from the base image of {{ranger-base}}:

{code}
$ docker run -it --rm eclipse-temurin:8-jdk-jammy bash -c 'echo $JAVA_HOME'
/opt/java/openjdk
{code}

> Pre-build ranger-base image
> ---------------------------
>
>                 Key: RANGER-5158
>                 URL: https://issues.apache.org/jira/browse/RANGER-5158
>             Project: Ranger
>          Issue Type: Sub-task
>          Components: docker
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>
> {{ranger-base}} image is used as base image for various Ranger components.  
> It can be built and published independently of Ranger, since it only includes 
> runtime dependencies, nothing specific to Ranger's version.
> Proposed changes:
> - create separate repository for the base image definition
> - build and publish the image using GitHub workflow
> - include only one version of Java, but publish image in different flavors 
> for different Java versions as necessary
> - build for multiple platforms (amd64, arm64)
> - publish both to Docker Hub and GitHub Container Registry
> Benefits:
> - reduced image size
> - reduced build time for derived images
> - improved usability for developers and CI



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

Reply via email to