BTW.: do you have a good idea for icingacli checks? As web and icinga are splitted, the checks can't run as there is no icingacli.
Maybe a Phar of the icingacli plus configuration deployed to the Icinga container. But I don't know if creating the Phar works that easily.
Originally posted by @lippserd in #17 (comment)
I just had an idea how to run such tests.
As there is a by_ssh command, that runs commands on a remote server by ssh, we could implement a by_docker command that can run check commands inside an existing container by docker exec icingaweb icingacli ... or by creating a new container with a custom check command docker run --rm check_xy_image.
Therefore the docker cli in the icinga2 image and the docker socket of the host of the icinga2 service or a ssh/tls DOCKERHOST is required.
Its not perfect for all hosting environments but the best solution for common.
Maybe a Phar of the icingacli plus configuration deployed to the Icinga container. But I don't know if creating the Phar works that easily.
Originally posted by @lippserd in #17 (comment)
I just had an idea how to run such tests.
As there is a
by_sshcommand, that runs commands on a remote server by ssh, we could implement aby_dockercommand that can run check commands inside an existing container bydocker exec icingaweb icingacli ...or by creating a new container with a custom check commanddocker run --rm check_xy_image.Therefore the docker cli in the icinga2 image and the docker socket of the host of the icinga2 service or a ssh/tls DOCKERHOST is required.
Its not perfect for all hosting environments but the best solution for common.