Skip to content

Conversation

@jnturton
Copy link
Contributor

DRILL-8001: Replace JRE docker images with JDK counterparts.

Description

Drill requires the Java compiler from the full JDK at runtime so we need to change the base OpenJDK images used accordingly.

Documentation

N/A

Testing

I rented a VM for testing this time and tested each image from building from a clean clone through to running a SQL query in Drill.

podman build \
        --build-arg BUILD_BASE_IMAGE=maven:3.8.2-openjdk-8 \
        --build-arg BASE_IMAGE=openjdk:8 \
        -t apache/drill-openjdk-8 .

podman run --rm -it localhost/apache/drill-openjdk-8

select * from cp.`employee.json`;

podman build \
        --build-arg BUILD_BASE_IMAGE=maven:3.8.2-openjdk-11 \
        --build-arg BASE_IMAGE=openjdk:11 \
        -t apache/drill-openjdk-11 .

podman run --rm -it localhost/apache/drill-openjdk-11

select * from cp.`employee.json`;

podman build \
        --build-arg BUILD_BASE_IMAGE=maven:3.8.2-openjdk-11 \
        --build-arg BASE_IMAGE=openjdk:14 \
        -t apache/drill-openjdk-14.

podman run --rm -it localhost/apache/drill-openjdk-14

select * from cp.`employee.json`;

@jnturton jnturton requested a review from vvysotskyi September 20, 2021 08:39
Copy link
Member

@vvysotskyi vvysotskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@jnturton jnturton merged commit 85d270f into apache:master Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants