Skip to content
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

Fix ARM64 Java in JDK17 Bullseye #310

Merged
merged 10 commits into from
Nov 2, 2022
Merged

Fix ARM64 Java in JDK17 Bullseye #310

merged 10 commits into from
Nov 2, 2022

Conversation

carpnick
Copy link
Contributor

@carpnick carpnick commented Oct 31, 2022

Fixes #308. Use platform dependent image by default to get correct java runtime.

Use native java runtime when on arm32 to get around jmods error:
"jmods: Value too large for defined data type" error

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@carpnick carpnick changed the title WIP Fix ARM64 Java in JDK17 Bullseye Nov 1, 2022
@carpnick carpnick marked this pull request as ready for review November 1, 2022 13:32
@carpnick carpnick requested a review from a team as a code owner November 1, 2022 13:32
Copy link
Member

@lemeurherve lemeurherve left a comment

Choose a reason for hiding this comment

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

(Formatting suggestions only)

17/bullseye/Dockerfile Outdated Show resolved Hide resolved
17/bullseye/Dockerfile Outdated Show resolved Hide resolved
docker-bake.hcl Outdated Show resolved Hide resolved
17/bullseye/Dockerfile Outdated Show resolved Hide resolved
carpnick and others added 4 commits November 1, 2022 10:26
Co-authored-by: Hervé Le Meur <91831478+lemeurherve@users.noreply.github.com>
Co-authored-by: Hervé Le Meur <91831478+lemeurherve@users.noreply.github.com>
Co-authored-by: Hervé Le Meur <91831478+lemeurherve@users.noreply.github.com>
Co-authored-by: Hervé Le Meur <91831478+lemeurherve@users.noreply.github.com>
17/bullseye/Dockerfile Outdated Show resolved Hide resolved
17/bullseye/Dockerfile Outdated Show resolved Hide resolved
17/bullseye/Dockerfile Outdated Show resolved Hide resolved
Copy link
Contributor

@dduportal dduportal left a comment

Choose a reason for hiding this comment

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

Many thanks! This is really a nice job!

However, there are 2 (minor but blocking) changes to be made:

  • The target field should be set outside the args blocks
  • The LABEL filed in the `Dockerfile should be moved to the "common" debian stage.

17/bullseye/Dockerfile Outdated Show resolved Hide resolved
docker-bake.hcl Outdated Show resolved Hide resolved
docker-bake.hcl Outdated Show resolved Hide resolved
carpnick and others added 5 commits November 2, 2022 15:02
Co-authored-by: Bruno Verachten <gounthar@gmail.com>
Co-authored-by: Bruno Verachten <gounthar@gmail.com>
Co-authored-by: Bruno Verachten <gounthar@gmail.com>
Copy link
Contributor

@dduportal dduportal left a comment

Choose a reason for hiding this comment

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

LGTM, great work!

@dduportal dduportal added the bug label Nov 2, 2022
@dduportal dduportal merged commit 05167ca into jenkinsci:master Nov 2, 2022
dduportal added a commit to dduportal/docker-agent that referenced this pull request Nov 16, 2022
… not

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
dduportal added a commit that referenced this pull request Nov 16, 2022
fix(debian_jdk17) revert #310 and use `TARGETPLATFORM` to detect if arm/v7 or not
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JDK 17 ARM64 doesnt work - Java cannot run in AWS Fargate
4 participants