You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aid="oci_image-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/concepts/labels#target-names">Name</a> | required ||
25
-
| <aid="oci_image-annotations"></a>annotations |[OCI Annotations](https://github.com/opencontainers/image-spec/blob/main/annotations.md) to add to the manifest. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
26
-
| <aid="oci_image-arch"></a>arch | Used to extract a manifest from base if base is an index | String | optional |`""`|
27
-
| <aid="oci_image-base"></a>base | A base image, as defined by oci_pull or oci_image | <ahref="https://bazel.build/concepts/labels">Label</a> | required ||
28
-
| <aid="oci_image-entrypoint"></a>entrypoint | A list of entrypoints for the image; these will be inserted into the generated OCI image config | List of strings | optional |`[]`|
29
-
| <aid="oci_image-env"></a>env | Entries are in the format of `VARNAME=VARVALUE`. These values act as defaults and are merged with any specified when creating a container. | List of strings | optional |`[]`|
30
-
| <aid="oci_image-labels"></a>labels | labels that will be applied to the image configuration, as defined in [the OCI config](https://github.com/opencontainers/image-spec/blob/main/config.md#properties). These behave the same way as [docker LABEL](https://docs.docker.com/engine/reference/builder/#label); in particular, labels from the base image are inherited. An empty value for a label will cause that label to be deleted. For backwards compatibility, if this is not set, then the value of annotations will be used instead. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
31
-
| <aid="oci_image-layers"></a>layers | A list of layers defined by oci_image_layer | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
32
-
| <aid="oci_image-os"></a>os | Used to extract a manifest from base if base is an index | String | optional |`""`|
33
-
| <aid="oci_image-stamp"></a>stamp | Whether to encode build information into the output. Possible values:<br><br>- `stamp = 1`: Always stamp the build information into the output, even in [--nostamp](https://docs.bazel.build/versions/main/user-manual.html#flag--stamp) builds. This setting should be avoided, since it is non-deterministic. It potentially causes remote cache misses for the target and any downstream actions that depend on the result. - `stamp = 0`: Never stamp, instead replace build information by constant values. This gives good build result caching. - `stamp = -1`: Embedding of build information is controlled by the [--[no]stamp](https://docs.bazel.build/versions/main/user-manual.html#flag--stamp) flag. Stamped targets are not rebuilt unless their dependencies change. | Integer | optional |`-1`|
34
-
| <aid="oci_image-tars"></a>tars | A list of tars to add as layers | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
35
-
36
-
37
5
<aid="oci_image_config"></a>
38
6
39
7
## oci_image_config
@@ -167,6 +135,41 @@ not be an issue when using the `oci_image` rule).
167
135
The config file named after the rule, os, and arch
| <aid="oci_image-name"></a>name | The name of the rule. | none |
161
+
| <aid="oci_image-base"></a>base | A base image, as defined by oci_pull or oci_image. | none |
162
+
| <aid="oci_image-annotations"></a>annotations | OCI Annotations to add to the manifest. |`None`|
163
+
| <aid="oci_image-arch"></a>arch | Used to extract a manifest from base if base is an index. |`None`|
164
+
| <aid="oci_image-entrypoint"></a>entrypoint | A list of entrypoints for the image; these will be inserted into the generated container configuration. |`None`|
165
+
| <aid="oci_image-env"></a>env | Entries are in the format of `VARNAME=VARVALUE`. These values act as defaults and are merged with any specified when creating a container. |`None`|
166
+
| <aid="oci_image-labels"></a>labels | Labels that will be applied to the image configuration, as defined in the OCI config. These behave the same way as docker LABEL. In particular, labels from the base image are inherited. An empty value for a label will cause that label to be deleted. For backwards compatibility, if this is not set, then the value of annotations will be used instead. |`None`|
167
+
| <aid="oci_image-layers"></a>layers | A list of layers defined by oci_image_layer. |`None`|
168
+
| <aid="oci_image-os"></a>os | Used to extract a manifest from base if base is an index. |`None`|
169
+
| <aid="oci_image-tars"></a>tars | A list of tars to add as layers. |`None`|
170
+
| <aid="oci_image-kwargs"></a>kwargs | Additional keyword arguments, e.g. tags or visibility | none |
0 commit comments