-
Notifications
You must be signed in to change notification settings - Fork 88
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
Use Jib as maven plugin to simplify the docker image building #250
Comments
Thanks for the suggestion. I assume you mean this: We will consider this as it seems very valuable for devon4j / java projects.
For the best-practices:
|
Was voted as a quickwin in DA meeting, so presumably on the roadmap for next release... |
I think we should make it as part of the server module within a profile. This can be easily understood and does not need to introduce another module. Even the server module is a module where people tend to ask were is it for? |
We figured out that This is already available in the spring-boot release we are using so it is not blocked by #311 |
@hohwille, if I get that right, we should not invest any further into that as it will be already provided right? Simply needs to be documented once. @sujith-mn please take care that we don't do duplicate work here. |
@maybeec the development and testing of the JIB is done already, IMHO we should go with it now as we do not have time to try spring boot for this release.. |
As we meanwhile have spring-boot 2.4.0 in devon4j we should revisit their container build feature. |
Jib has a great feature where we can use it without docker being installed, as long as you store the Container Image on an external Container Registry (like DockerHub or the Google Cloud Container Registry) |
It does not need to be a public repository https://dzone.com/articles/how-to-publish-docker-images-on-private-nexus-repo-1 |
Moving conversation to this issue:
> Here is a multi-module example from google: https://github.com/GoogleContainerTools/jib/tree/master/examples/multi-module |
The regular
Can you explain this? What did you do with the tar and what error did you get? Or are you just saying that the name The actual install should then install/deploy the image to the container registry. If this is not working by default, it should happen in a profile that needs to be triggered manually. |
it is working with the multimodule configuration link which is shared. Only the parent pom will have the JIB configuration, other modules does not need a configuration unless it is not to be containerized. Skip configuration is needed for the module which does not require any containerization, |
Tar file created without docker demon. But the generated file is not getting loaded to my local docker demon. Looks like the tar file did not get generated properly, could be a plugin configuration issue.
The file name is always jib-image.tar, there is no issue in that. I have pointed out this wrongly by thinking tar file should get the name of module. Also getting the below error while using the
|
So if Do I get this right that you are proposing to add jib to parent POM and add skip to every module that is not to build a container ( Actually to be honest, I have the feeling that we are missing the solid principle here (https://github.com/devonfw/devon4j/blob/develop/documentation/architecture.asciidoc#key-principles). We might end up with a somehow working solution that rushes into the release but the first project that wants to use this in a real-life scenario might suffer... However, just a gut feeling. It would be better to have a project first that verifies the approach before shipping this as new release feature... |
It is seems there is some issues with OCI format and tar file building. once the configuration IMHO, configure the plugin on parent pom and skip the unwanted modules is the working approach. This has been tested and working fine. |
As a developer, I want use Jib so that the containerization will be easier.
The text was updated successfully, but these errors were encountered: