pulp-oci-images icon indicating copy to clipboard operation
pulp-oci-images copied to clipboard

Is dependence condition missing in compose.folders.yml for pulp_web service

Open xm1234567 opened this issue 1 year ago • 3 comments

Version pulp/pulp-minimal latest f89cae78c76a
pulp/pulp-web latest 69a0e8f150cc

Describe the bug I tired compose.folders.yml, got the following:

[xxx@xxx compose]$ docker compose -f compose.folders.yml up
validating /home/xniu/pulp-oci-images/images/compose/compose.folders.yml: services.pulp_web.depends_on.pulp_api must be a mapping

I changed a bit the compose.folders.yml, added the two condition statements for pulp_api and pulp_content, then the above problem gone:

  pulp_web:
    image: "pulp/pulp-web:latest"
    command: ['/usr/bin/nginx.sh']
    depends_on:
      pulp_api:
        condition: service_healthy
      pulp_content:
        condition: service_healthy

To Reproduce just run docker compose -f compose.folders.yml up

Expected behavior docker compose CLI should be able to run.

xm1234567 avatar Jan 10 '24 20:01 xm1234567

I'm certain, both versions are allowed per the docker compose docs (or at least were). But the change you made sounds fine. We could use a PR then.

mdellweg avatar Jan 11 '24 09:01 mdellweg

I just copy the lines from compose.yml into compose.folder.yml , is it worth a PR? or you can just add in future release :)

xm1234567 avatar Jan 11 '24 15:01 xm1234567

It's absolutely worth a PR. Also we don't release the compose files from this repository.

mdellweg avatar Jan 11 '24 15:01 mdellweg