mardi 26 novembre 2019

What would be local "docker test" command?

Docker official documentation standardizes a way to test images with the sut service in a docker-compose.test.yml file: https://docs.docker.com/docker-hub/builds/automated-testing/

Yet, the documentation does not provide anyway to run those tests on another environment than the centralized Docker Hub.

At the same time, another official documentation entry explains that it is possible to override the test command with hooks. Yet, there is no documentation for this elusive test command, nor any example on how to properly override it.

  • Is there such thing as an actual test command?
  • If not, how would a developer locally run the docker test following the proposed format on his local environment?
  • What would be an example test hook override?

Aucun commentaire:

Enregistrer un commentaire