Skip to content

Commit

Permalink
docs: run local container dependencies blogpost (#5598)
Browse files Browse the repository at this point in the history
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
  • Loading branch information
KollaAdithya authored Jan 9, 2024
1 parent d7eda67 commit af7c209
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion site/content/blogs/release-v133.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,29 @@ Copilot v1.33 brings big enhancements to help you develop more flexibly and effi

## Use ECS Task Role for `copilot run local`

## Container dependencies support for `copilot run local`
## Container dependencies support for `copilot run local`

`copilot run local` now respects the [`depends_on`](../docs/manifest/lb-web-service.md#image-depends-on) specified in the service manifest.

For example:

```
image:
build: ./Dockerfile
depends_on:
nginx: start
nginx:
image:
build: ./web/Dockerfile
essential: true
depends_on:
startup: success
startup:
image:
build: ./front/Dockerfile
essential: false
```

This means that your main container will start only after nginx sidecar container has started and nginx will start only after startup container is completed successfully.

0 comments on commit af7c209

Please sign in to comment.