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
> 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
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
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
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