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

Introduce jib #331

Merged
merged 19 commits into from
May 26, 2022
Merged

Introduce jib #331

merged 19 commits into from
May 26, 2022

Conversation

KengoTODA
Copy link
Owner

@KengoTODA KengoTODA commented May 25, 2022

https://cloud.google.com/run/docs/tips/java

remaining TODO:

@KengoTODA
Copy link
Owner Author

KengoTODA commented May 25, 2022

before (920edd0 with jlink):

2022-05-25 23:40:17.218 INFO 1 --- [ main] j.s.javadocky.JavadockyApplication : Started JavadockyApplication in 2.62 seconds (JVM running for 4.175)

the size of the container is 122MB according to docker image ls.

after (5570749 with jib):

2022-05-25 23:43:37.354 INFO 1 --- [ main] j.s.javadocky.JavadockyApplication : Started JavadockyApplication in 2.228 seconds (JVM running for 7.404)

the size of the container is 384MB according to docker image ls.

try the jib with AppCDS later.

@KengoTODA
Copy link
Owner Author

docker with AppCDS (2b0569e)

2022-05-26 05:04:32.577 INFO 1 --- [ main] j.s.javadocky.JavadockyApplication : Started JavadockyApplication in 1.865 seconds (JVM running for 2.858)

the size of the container is 442MB according to docker image ls.

@KengoTODA
Copy link
Owner Author

jlink and AppCDS (902c5a0)

2022-05-26 06:05:53.685 INFO 1 --- [ main] j.s.javadocky.JavadockyApplication : Started JavadockyApplication in 1.438 seconds (JVM running for 2.443)

The size of the container is 164MB according to docker image ls. But when we launch the container, there is a warning reported: "OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended"

@KengoTODA KengoTODA marked this pull request as ready for review May 26, 2022 07:14
@KengoTODA KengoTODA merged commit 513dd16 into master May 26, 2022
@KengoTODA KengoTODA deleted the introduce-jib branch May 26, 2022 07:14
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.

1 participant