Skip to content

Commit

Permalink
Support relocation of invocation images
Browse files Browse the repository at this point in the history
  • Loading branch information
glyn committed Apr 11, 2019
1 parent 61e8877 commit 999cd49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 101-bundle-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ The following OPTIONAL fields MAY be attached to an invocation image:
- `architecture`: The architecture of the image (`i386`, `amd64`, `arm32`...)
- `os`: The operating system of the image
- `mediaType`: The media type of the image
- `originalImage`: provides a path-like or URI-like representation of the original location of the image. If the `originalImage` field is omitted, as in the example above, its value defaults to that of the `image` field.
- `originalDigest`: contains a digest, in [OCI format](https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests), to be used to compute the integrity of the original image. The calculation of how the original image matches the digest is dependent upon image type. If the `originalDigest` field is omitted, as in the example above, its value defaults to that of the `digest` field.

## The Image Map

Expand Down
4 changes: 4 additions & 0 deletions schema/bundle.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@
"description": "A resolvable reference to the image. This may be interpreted differently based on imageType, but the default is to treat this as an OCI image",
"type": "string"
},
"originalImage":{
"description": "A resolvable reference to the original image. This may be interpreted differently based on imageType, but the default is to treat this as an OCI image. If this is not specified, the value is assumed to be that of the image field",
"type": "string"
},
"imageType":{
"description": "The type of image. If this is not specified, 'oci' is assumed",
"type": "string",
Expand Down

0 comments on commit 999cd49

Please sign in to comment.