Skip to content

Example of depends_on usage required #13516

@flyte

Description

@flyte

File: docker-hub/builds/automated-testing.md

It's unclear how to actually use the depends_on feature described in this automated-testing documentation.

If I add some services and a depends_on to sut then I get:

The Compose file './docker-compose-test.yml' is invalid because:
Unsupported config option for sut: 'depends_on'
building docker-compose-test.yml (1)

using the following docker-compose-test.yml file:

sut:
  build: .
  command: ./run_tests.sh
  depends_on:
    - db
db:
  image: postgis/postgis:12-3.1-alpine
  environment:
    POSTGRES_PASSWORD: pgpassword
  expose:
    - "5432"

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