Skip to content

Commit d174012

Browse files
committed
docs(site): On sidecars, the depends_on attributes is not on image attribute (aws#5945)
1 parent b1c4c42 commit d174012

16 files changed

+40
-34
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% include 'image-config.en.md' %}
2+
3+
{% include 'image-depends-on-config.en.md' %}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% include 'image-config.ja.md' %}
2+
3+
{% include 'image-depends-on-config.ja.md' %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% include 'image-config.en.md' %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% include 'image-config.ja.md' %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% include 'image.md' %}
22

3-
{% include 'image-config.en.md' %}
3+
{% include 'image-config-for-main-container.en.md' %}
44

55
<span class="parent-field">image.</span><a id="image-port" href="#image-port" class="field">`port`</a> <span class="type">Integer</span>
66
The port exposed in your Dockerfile. Copilot should parse this value for you from your `EXPOSE` instruction.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% include 'image.ja.md' %}
22

3-
{% include 'image-config.ja.md' %}
3+
{% include 'image-config-for-main-container.ja.md' %}
44

55
<span class="parent-field">image.</span><a id="image-port" href="#image-port" class="field">`port`</a> <span class="type">Integer</span>
66
公開するポート番号。Dockerfile 内に `EXPOSE` インストラクションが記述されている場合、Copilot はそれをパースした値をここに挿入します。

site/content/docs/include/image-config.en.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,3 @@ An optional credentials ARN for a private repository. The `credentials` field fo
4040

4141
<span class="parent-field">image.</span><a id="image-labels" href="#image-labels" class="field">`labels`</a> <span class="type">Map</span>
4242
An optional key/value map of [Docker labels](https://docs.docker.com/config/labels-custom-metadata/) to add to the container.
43-
44-
<span class="parent-field">image.</span><a id="image-depends-on" href="#image-depends-on" class="field">`depends_on`</a> <span class="type">Map</span>
45-
An optional key/value map of [Container Dependencies](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDependency.html) to add to the container. The key of the map is a container name and the value is the condition to depend on. Valid conditions are: `start`, `healthy`, `complete`, and `success`. You cannot specify a `complete` or `success` dependency on an essential container.
46-
47-
For example:
48-
```yaml
49-
image:
50-
build: ./Dockerfile
51-
depends_on:
52-
nginx: start
53-
startup: success
54-
```
55-
In the above example, the task's main container will only start after the `nginx` sidecar has started and the `startup` container has completed successfully.

site/content/docs/include/image-config.ja.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,3 @@ Dockerfile からコンテナイメージをビルドする代わりに、既存
4040

4141
<span class="parent-field">image.</span><a id="image-labels" href="#image-labels" class="field">`labels`</a> <span class="type">Map</span>
4242
コンテナに付与したい [Docker ラベル](https://docs.docker.com/config/labels-custom-metadata/)を key/value の Map で指定できます。これは任意設定項目です。
43-
44-
<span class="parent-field">image.</span><a id="image-depends-on" href="#image-depends-on" class="field">`depends_on`</a> <span class="type">Map</span>
45-
任意項目。コンテナに追加する [Container Dependencies](https://docs.aws.amazon.com/ja_jp/AmazonECS/latest/APIReference/API_ContainerDependency.html) の任意の key/value の Map。Map の key はコンテナ名で、value は依存関係を表す値 (依存条件) として `start`、`healthy`、`complete`、`success` のいずれかを指定できます。なお、必須コンテナに `complete` や `success` の依存条件を指定することはできません。
46-
47-
設定例:
48-
```yaml
49-
image:
50-
build: ./Dockerfile
51-
depends_on:
52-
nginx: start
53-
startup: success
54-
```
55-
上記の例では、タスクのメインコンテナは `nginx` サイドカーが起動し、`startup` コンテナが正常に完了してから起動します。
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<span class="parent-field">image.</span><a id="image-depends-on" href="#image-depends-on" class="field">`depends_on`</a> <span class="type">Map</span>
2+
An optional key/value map of [Container Dependencies](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDependency.html) to add to the container. The key of the map is a container name and the value is the condition to depend on. Valid conditions are: `start`, `healthy`, `complete`, and `success`. You cannot specify a `complete` or `success` dependency on an essential container.
3+
4+
For example:
5+
```yaml
6+
image:
7+
build: ./Dockerfile
8+
depends_on:
9+
nginx: start
10+
startup: success
11+
```
12+
In the above example, the task's main container will only start after the `nginx` sidecar has started and the `startup` container has completed successfully.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<span class="parent-field">image.</span><a id="image-depends-on" href="#image-depends-on" class="field">`depends_on`</a> <span class="type">Map</span>
2+
任意項目。コンテナに追加する [Container Dependencies](https://docs.aws.amazon.com/ja_jp/AmazonECS/latest/APIReference/API_ContainerDependency.html) の任意の key/value の Map。Map の key はコンテナ名で、value は依存関係を表す値 (依存条件) として `start``healthy``complete``success` のいずれかを指定できます。なお、必須コンテナに `complete``success` の依存条件を指定することはできません。
3+
4+
設定例:
5+
```yaml
6+
image:
7+
build: ./Dockerfile
8+
depends_on:
9+
nginx: start
10+
startup: success
11+
```
12+
上記の例では、タスクのメインコンテナは `nginx` サイドカーが起動し、`startup` コンテナが正常に完了してから起動します。

0 commit comments

Comments
 (0)