-
Notifications
You must be signed in to change notification settings - Fork 113
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
S2I Chained builds #1216
Comments
Related slack thread: https://kubernetes.slack.com/archives/C019ZRGUEJC/p1672908372054139 |
@tommaso-borgato thanks for the issue. We were just looking at that project and at this example, https://github.com/wildfly/wildfly-s2i/tree/main/examples/docker-build. But, we don't get the full picture. Do you have a full e2e example by chance which includes the source code repository, and the commands that one must run that produce the container image. Then we can better assess if and how this is doable with Shipwright Build ? |
You can do it with HELM (https://github.com/wildfly/wildfly-charts) and this is actually the scenario we would like to cover:
You'll notice two builds will be started (my-release-build-artifacts-1-build --> my-release-2-build):
|
@SaschaSchwarze0 ^^^ |
Thanks for the details @tommaso-borgato. So basically a build strategy would need to contain two steps:
What I wonder is how generic that is. It would be no issue to set this up, like step (1) using a Java+Maven image and running a Maven build. And then a second step which uses maybe Assuming it is simple, then so far, our sample build strategies are more generic (maybe with the exception of What could also be the case as you mention builder image: one could build a generic build strategy where the image of step (1) is a parameter. For your Java app, you use image a, for my node app, I use image b. When those images run, they will run the build and put the output somewhere. And then step (2) would take that output and append it to the parameterized run image as a layer, and somehow define the image's entrypoint. |
@SaschaSchwarze0 the process is described here https://github.com/openshift/source-to-image/blob/master/docs/runtime_image.md I suppose that, if
|
Okay, so, are you then just asking for the addition of |
and |
Okay, do you have a full example for me then. And sorry to ask so stupid questions, but I never used
And is |
give me some time to put one together .... |
e.g.
the resulting image doesn't start correctly yet (need to fix something) but the chained s2i build is successful |
Enhancing the s2i build strategy, e.g. with a new parameter, in order to manage s2i chained builds;
This enhancement would allow us to handle WildFly s2i builds (see https://github.com/wildfly/wildfly-s2i/) which use a builder and a runtime image; in WildFly s2i builds two images are defined, one for the actual build and one for the runtime:
The text was updated successfully, but these errors were encountered: