Skip to content

Add verify command #6408

Description

@trajano

Is your feature request related to a problem? Please describe.

For CI, it would be good to verify that the docker-compose would work correctly.

Describe the solution you'd like

When I do docker-compose verify it does the same thing as docker-compose up and waits for the healthcheck to pass for all the services. Once it passes, it runs docker-compose down to tear down the app.

Some other parameters to consider are:

  • --build force a build even if it is not needed
  • --limit=60s time limit before giving up on health checks to pass
  • --keep-up keeps the services up after verifying. This allows more complex integration tests to be executed after the healthchecks are up.

Describe alternatives you've considered

We create a separate test application that waits for the stack to come up and run our tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions