This is an automated email from the ASF dual-hosted git repository.
aicam pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/master by this push:
new d2773b8871 fix(docker): use JDK instead of JRE for Java UDF
compilation (#3628)
d2773b8871 is described below
commit d2773b88717cdc256c789d357315bf663a650d40
Author: Jiadong Bai <[email protected]>
AuthorDate: Fri Aug 8 15:45:48 2025 -0700
fix(docker): use JDK instead of JRE for Java UDF compilation (#3628)
## Summary
This PR fixes Java UDF compilation failures in Docker containers by
switching the base image from JRE to JDK.
## Problem
Java UDF operators require runtime compilation of user-provided Java
code using `ToolProvider.getSystemJavaCompiler()`. This compiler is only
available in JDK distributions, not JRE-only images.
Previously, the Docker container used `eclipse-temurin:11-jre-jammy`,
causing compilation to fail with null pointer exceptions.
## Solution
Changed the Docker base image from `eclipse-temurin:11-jre-jammy` to
`eclipse-temurin:11-jdk-jammy` to include the Java compiler tools needed
for runtime compilation.
---
deployment/computing-unit-master.dockerfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/deployment/computing-unit-master.dockerfile
b/deployment/computing-unit-master.dockerfile
index 4344003465..167bf1bccc 100644
--- a/deployment/computing-unit-master.dockerfile
+++ b/deployment/computing-unit-master.dockerfile
@@ -39,7 +39,7 @@ RUN sbt clean WorkflowExecutionService/dist
# Unzip the texera binary
RUN unzip amber/target/universal/texera-*.zip -d amber/target/
-FROM eclipse-temurin:11-jre-jammy AS runtime
+FROM eclipse-temurin:11-jdk-jammy AS runtime
WORKDIR /core/amber