copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Misleading Doc: On sidecars, the depends_on attributes is not on image attribute

Open alquerci opened this issue 1 year ago • 2 comments

Actual

On the doc https://aws.github.io/copilot-cli/docs/developing/sidecars/#image-depends-on

image:
  build: ./Dockerfile
  depends_on:
    nginx: start
    startup: success

image

Expected/Working

sidecars:
  some_sidecar:
    image:
      build: ./Dockerfile
    depends_on:
      nginx: start
      startup: success

alquerci avatar Sep 27 '24 10:09 alquerci

hi @alquerci ! Good eyes - thank you very much for reporting this! While we pick this up, feel free to contribute a PR too! Contributions are always welcomed and very appreciated. It should be removed from https://github.com/aws/copilot-cli/blob/b1c4c42cf1c47793a8181314a732312f3e3df1a7/site/content/docs/include/image-config.en.md?plain=1#L44 and added to https://github.com/aws/copilot-cli/blob/mainline/site/content/docs/include/sidecar-config.en.md.

Thanks again for spotting this!

Lou1415926 avatar Oct 07 '24 16:10 Lou1415926

@Lou1415926 well it is not so simple.

The template image is good. But it is included inside sidecars template. Only on sidecars depends_on is not present inside image.

It was a good idea to avoid duplication.

So a way to keep avoiding duplication is creating an abstract common image template with same fields used on both concrete image Map.

I accept your invitation to contribute.

alquerci avatar Oct 07 '24 17:10 alquerci