-
Notifications
You must be signed in to change notification settings - Fork 498
[FLINK-36392] Build with target jdk #888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,8 @@ | |
| # limitations under the License. | ||
| ################################################################################ | ||
| # Build | ||
| FROM maven:3.8.4-eclipse-temurin-11 AS build | ||
| ARG JAVA_VERSION=11 | ||
| FROM maven:3.8.8-eclipse-temurin-${JAVA_VERSION} AS build | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bumps the maven version. I went for the oldest version which supports all three of the desired java versions. Could equally jump to the latest maven version (3.9.9 IIRC). This is the core of the fix so that maven in the docker container actually builds with the desired JVM version. |
||
| ARG SKIP_TESTS=true | ||
|
|
||
| WORKDIR /app | ||
|
|
@@ -33,7 +34,7 @@ RUN cd /app/tools/license; mkdir jars; cd jars; \ | |
| cd ../ && ./collect_license_files.sh ./jars ./licenses-output | ||
|
|
||
| # stage | ||
| FROM eclipse-temurin:11-jre-jammy | ||
| FROM eclipse-temurin:${JAVA_VERSION}-jre-jammy | ||
| ENV FLINK_HOME=/opt/flink | ||
| ENV FLINK_PLUGINS_DIR=$FLINK_HOME/plugins | ||
| ENV OPERATOR_VERSION=1.10-SNAPSHOT | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not strictly needed for this PR, but reduces the number of build jobs to wade through (especially useful when debugging). Happy to drop/move to a new PR if desired.