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

Build arm64 docker image #4101

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

harryzcy
Copy link

@harryzcy harryzcy commented Jul 11, 2024

Related #3542

@harryzcy harryzcy force-pushed the docker-arm64 branch 2 times, most recently from 86ca060 to 66dcdc3 Compare July 11, 2024 02:52
Copy link
Collaborator

@kitbellew kitbellew left a comment

Choose a reason for hiding this comment

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

it seems to me that you're trying to introduce an alternative to the existing process. can you please suggest a way to reuse it instead?

please take a look at the following to see if you can accomplish that:

@kitbellew
Copy link
Collaborator

one other point: ci workflow simply checks whether a new commit is valid. if you want to have an image to install, i'd expect it to be published in release workflow.

@tgodzik would you be able to confirm that?

@harryzcy harryzcy marked this pull request as draft July 11, 2024 03:25
@harryzcy
Copy link
Author

harryzcy commented Jul 11, 2024

it seems to me that you're trying to introduce an alternative to the existing process. can you please suggest a way to reuse it instead?

I'm reusing bin/build-native-image.sh here.

RUN microdnf install -y git \
  && bin/build-native-image.sh \
  && mv scalafmt-cli/target/native-image/cli /bin/scalafmt

Does sbt-native-image only work with Java 8 and Java 11? The sbtscala/scala-sbt image only offers arm64 for Java 17, and I'm having issues building it

Also, the graalvm doesn't seem to support building with static linking with musl. oracle/graal#7103.

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