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

Supporting drone pipelines #1534

Open
kameshsampath opened this issue Jun 2, 2022 · 7 comments
Open

Supporting drone pipelines #1534

kameshsampath opened this issue Jun 2, 2022 · 7 comments
Assignees

Comments

@kameshsampath
Copy link

kameshsampath commented Jun 2, 2022

Description

Drone is continuous delivery tool that uses containers to build pipelines. As a Java developer I would like to have JKube generate a standard .drone.yml for the Java project then use that YAML to trigger Drone pipelines.

  • If it's a feature request, what is your use case :

Support for Drone pipelines to build the Java projects.

CC: @manusa , @rohanKanojia

@manusa
Copy link
Member

manusa commented Jun 6, 2022

Sounds good.
This could be an optional enricher. I guess, that this requires java types to map Drone's custom resources. With the upcoming release of Fabric8 Kubernetes Client 6.0 we'll include a CRD to Java generator that might simplify this task very much.

@kameshsampath
Copy link
Author

@manusa - this more done at the client side than at server side. The .drone.yaml does not apply anything on the Kubernetes though Kubernetes Runner is one option. My thought here is to generate the standard Java specific .drone.yaml and then when we do mvn k8s:build it triggers the Drone pipeline.

What do you think about this?

@manusa
Copy link
Member

manusa commented Jun 7, 2022

😅 Well, I guess I haven't checked the Drone project that much.

Yes, this sounds good. I understand that the pipeline would generate a container image and maybe push it to the cluster's registry? (This more being related to #767 #439)
One of the project goals is to cover as many build strategies and options as we can.

So I'm still not sure if this is what we'd achieve, but being able to run:

mvn package k8s:build -Djkube.build.strategy=drone # k8s:push # (maybe this too)

and having the container image built remotely, would be awesome. In this case, besides the .drone.yaml, the build should behave similarly to what we have in the S2i build. The package should be piped to the remote server. However, I understand this might be a further step on the initial implementation.

@kameshsampath
Copy link
Author

kameshsampath commented Jun 7, 2022

😅 Well, I guess I haven't checked the Drone project that much.

It will be nice if you can play with it to get some more idea and thoughts

Yes, this sounds good. I understand that the pipeline would generate a container image and maybe push it to the cluster's registry? (This more being related to #767 #439) One of the project goals is to cover as many build strategies and options as we can.

So I'm still not sure if this is what we'd achieve, but being able to run:

mvn package k8s:build -Djkube.build.strategy=drone # k8s:push # (maybe this too)

and having the container image built remotely, would be awesome. In this case, besides the .drone.yaml, the build should behave similarly to what we have in the S2i build.

s2i is close but then the Drone is pipelines are run using containers just like tekton but little simpler :)

The package should be piped to the remote server.

This might be a good one. We could also add watch so that we can trigger the pipelines when source changes ?

However, I understand this might be a further step on the initial implementation.

Yes, I want to have the very basics to be working first, then we can keep improving.

@sunix
Copy link
Member

sunix commented Jun 27, 2022

Hey @kameshsampath, is the plan, you to contribute a first draft of this feature and us to review it? Let us know.

@kameshsampath
Copy link
Author

yes @sunix thats the plan

@sunix
Copy link
Member

sunix commented Jul 7, 2022

Allright 🙏🏼

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

No branches or pull requests

3 participants