Re: Kubernetes Build Environment

2022-06-06 Thread Bernd Eckenfels
Von: Philipp Kraus Gesendet: Monday, June 6, 2022 7:47:34 PM An: Maven Users List Betreff: Re: Kubernetes Build Environment > Am 06.06.2022 um 05:55 schrieb Bernd Eckenfels : > > do you need to test K8s or just have some external containers to set up, > maybe using Te

Re: Kubernetes Build Environment

2022-06-06 Thread Philipp Kraus
> Am 06.06.2022 um 05:55 schrieb Bernd Eckenfels : > > do you need to test K8s or just have some external containers to set up, > maybe using Testcontainers with Docker APi is an alternative? (Advantage is > you can simpler test it locally) Yes I’m using TestContainers for some test, but here

Re: Kubernetes Build Environment

2022-06-05 Thread Lasse Lindqvist
It is also possible you keep the test execution as part of the Maven process/build. In that case Exec Maven Plugin ( https://www.mojohaus.org/exec-maven-plugin/usage.html) will be a good friend of yours. There are some plugins that help you deploy to Kubernetes easily (Jkube and some others). Once

Re: Kubernetes Build Environment

2022-06-05 Thread David Karr
Along the lines of Bernd's response, I would (as we have done in our own builds) use Maven to build the artifacts that we deploy to our intranet repositories, but we do everything else in Jenkins pipeline script. We just call "kubectl" for k8s configuration steps, and when it comes down to integrat

Re: Kubernetes Build Environment

2022-06-05 Thread Bernd Eckenfels
do you need to test K8s or just have some external containers to set up, maybe using Testcontainers with Docker APi is an alternative? (Advantage is you can simpler test it locally) Another alternative is to use a CI pipeline script/system instead of orchestrating it in maven - at least if the