Skip to content

Commit

Permalink
image/spec: add missing "OnBuild" field
Browse files Browse the repository at this point in the history
This field was added in commit 9f994c9,
which was merged before the image-spec v1.0.0 was released (which happened
in commit 7991062).

This patch backfills the specifications to describe the property.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Aug 30, 2023
1 parent b526ce2 commit f333702
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions image/spec/v1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,16 @@ whitespace. It has been added to this example for clarity.
in the container. This value acts as a default and is replaced
by a working directory specified when creating a container.
</dd>
<dt>
OnBuild <code>array of strings</code>
</dt>
<dd>
This metadata defines "trigger" instructions to be executed at
a later time, when the image is used as the base for another
build. Each trigger will be executed in the context of the
downstream build, as if it had been inserted immediately after
the *FROM* instruction in the downstream Dockerfile.
</dd>
</dl>
</dd>
<dt>
Expand Down
10 changes: 10 additions & 0 deletions image/spec/v1.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,16 @@ whitespace. It has been added to this example for clarity.
in the container. This value acts as a default and is replaced
by a working directory specified when creating a container.
</dd>
<dt>
OnBuild <code>array of strings</code>
</dt>
<dd>
This metadata defines "trigger" instructions to be executed at
a later time, when the image is used as the base for another
build. Each trigger will be executed in the context of the
downstream build, as if it had been inserted immediately after
the *FROM* instruction in the downstream Dockerfile.
</dd>
</dl>
</dd>
<dt>
Expand Down
10 changes: 10 additions & 0 deletions image/spec/v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,16 @@ Here is an example image JSON file:
in the container. This value acts as a default and is replaced
by a working directory specified when creating a container.
</dd>
<dt>
OnBuild <code>array of strings</code>
</dt>
<dd>
This metadata defines "trigger" instructions to be executed at
a later time, when the image is used as the base for another
build. Each trigger will be executed in the context of the
downstream build, as if it had been inserted immediately after
the *FROM* instruction in the downstream Dockerfile.
</dd>
</dl>
</dd>
</dl>
Expand Down

0 comments on commit f333702

Please sign in to comment.