Diveni icon indicating copy to clipboard operation
Diveni copied to clipboard

GraalVM for more performant backend images

Open Harsh3305 opened this issue 2 years ago • 11 comments

close https://github.com/Sybit-Education/Diveni/issues/422

Harsh3305 avatar Oct 04 '23 14:10 Harsh3305

Hi @SponsoredByPuma 👋🏻 Can you review my PR. Thanks

Harsh3305 avatar Oct 07 '23 10:10 Harsh3305

Yeah, sure I will look into this the next following days

SponsoredByPuma avatar Oct 08 '23 21:10 SponsoredByPuma

Hi @Harsh3305, I looked over your PR and it looks good. I've just got a problem trying to run it on my machine, maybe you could help me out there. Everytime i try to run it I get this error: image What could I do to fix this?

SponsoredByPuma avatar Oct 10 '23 09:10 SponsoredByPuma

I receive the same error as @SponsoredByPuma . Could this possibly be due to all GraalVM images now being on GHCR?

See: https://github.com/graalvm/container/pkgs/container/graalvm-ce We might need to change oracle/graalvm-ce:latest to, for example, ghcr.io/graalvm/graalvm-ce:ol8-java17.

Dan1elBox avatar Oct 13 '23 11:10 Dan1elBox

Hi @SponsoredByPuma @Dan1elBox Done some changes in dockerfile. Please review 😄

Harsh3305 avatar Oct 14 '23 02:10 Harsh3305

Hi @Harsh3305, the issue is now fixed. Currently I get an error message at the last step: image Which command are you using to start the docker?

SponsoredByPuma avatar Oct 18 '23 07:10 SponsoredByPuma

Hi @Harsh3305 The image now loads correctly, but I'm encountering the same error as @SponsoredByPuma, indicating that I should specify the class with the main entry point method.

Dan1elBox avatar Oct 19 '23 13:10 Dan1elBox

Hi @Harsh3305, is there any performance gain at all with GraalVM over Docker?

KzuDemEvin avatar Oct 24 '23 18:10 KzuDemEvin

Hi @Harsh3305,

is there any performance gain at all with GraalVM over Docker?

@KzuDemEvin GraalVM is created especially for container environments and requires less space and startup overhead - as I know.

stritti avatar Oct 25 '23 08:10 stritti

I think this needs more investigation than just replace docker: https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html

stritti avatar Oct 30 '23 08:10 stritti

Hi @Harsh3305, thank you for your interest and contribution to this project 😃 Do you plan to continue working on this PR in the future?"

Dan1elBox avatar Mar 28 '24 13:03 Dan1elBox