I recently stumbled upon a project called Testcontainers that looks an awful lot like what I've built in this repository:
I haven't looked into this in any detail, but it looks promising at first glance. Using the Docker Go package as a client library didn't really spark joy and there happened a lot of changes to that package (remember Moby?), which this project hasn't caught up to (it uses a quite old version of that package). Maybe Testcontainers might be a way forward here, using an external library for the annoying parts and keeping the Icinga-specific bootstrapping parts and convenience helpers in this repo.
I recently stumbled upon a project called Testcontainers that looks an awful lot like what I've built in this repository:
I haven't looked into this in any detail, but it looks promising at first glance. Using the Docker Go package as a client library didn't really spark joy and there happened a lot of changes to that package (remember Moby?), which this project hasn't caught up to (it uses a quite old version of that package). Maybe Testcontainers might be a way forward here, using an external library for the annoying parts and keeping the Icinga-specific bootstrapping parts and convenience helpers in this repo.