mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 09:17:49 +08:00
docs: update with new inspect output
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
parent
484823c97d
commit
9818055b0e
@ -287,69 +287,57 @@ $ docker buildx imagetools inspect moby/buildkit:master --format "{{json .Manife
|
|||||||
Following command provides [SLSA](https://github.com/moby/buildkit/blob/master/docs/attestations/slsa-provenance.md) JSON output:
|
Following command provides [SLSA](https://github.com/moby/buildkit/blob/master/docs/attestations/slsa-provenance.md) JSON output:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker buildx imagetools inspect crazymax/buildkit:attest --format "{{json .SLSA}}"
|
$ docker buildx imagetools inspect crazymax/buildkit:attest --format "{{json .Provenance}}"
|
||||||
```
|
```
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"Provenance": {
|
"SLSA": {
|
||||||
"_type": "https://in-toto.io/Statement/v0.1",
|
"builder": {
|
||||||
"predicateType": "https://slsa.dev/provenance/v0.2",
|
"id": ""
|
||||||
"subject": [
|
},
|
||||||
|
"buildType": "https://mobyproject.org/buildkit@v1",
|
||||||
|
"materials": [
|
||||||
{
|
{
|
||||||
"name": "pkg:docker/crazymax/buildkit@attest?platform=linux%2Famd64",
|
"uri": "pkg:docker/docker/buildkit-syft-scanner@stable-1",
|
||||||
"digest": {
|
"digest": {
|
||||||
"sha256": "fbd10fe50b4b174bb9ea273e2eb9827fa8bf5c88edd8635a93dc83e0d1aecb55"
|
"sha256": "b45f1d207e16c3a3a5a10b254ad8ad358d01f7ea090d382b95c6b2ee2b3ef765"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"uri": "pkg:docker/alpine@latest?platform=linux%2Famd64",
|
||||||
|
"digest": {
|
||||||
|
"sha256": "8914eb54f968791faf6a8638949e480fef81e697984fba772b3976835194c6d4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"predicate": {
|
"invocation": {
|
||||||
"builder": {
|
"configSource": {},
|
||||||
"id": ""
|
"parameters": {
|
||||||
},
|
"frontend": "dockerfile.v0",
|
||||||
"buildType": "https://mobyproject.org/buildkit@v1",
|
"locals": [
|
||||||
"materials": [
|
{
|
||||||
{
|
"name": "context"
|
||||||
"uri": "pkg:docker/docker/buildkit-syft-scanner@stable-1",
|
},
|
||||||
"digest": {
|
{
|
||||||
"sha256": "b45f1d207e16c3a3a5a10b254ad8ad358d01f7ea090d382b95c6b2ee2b3ef765"
|
"name": "dockerfile"
|
||||||
}
|
}
|
||||||
},
|
]
|
||||||
{
|
|
||||||
"uri": "pkg:docker/alpine@latest?platform=linux%2Famd64",
|
|
||||||
"digest": {
|
|
||||||
"sha256": "8914eb54f968791faf6a8638949e480fef81e697984fba772b3976835194c6d4"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"invocation": {
|
|
||||||
"configSource": {},
|
|
||||||
"parameters": {
|
|
||||||
"frontend": "dockerfile.v0",
|
|
||||||
"locals": [
|
|
||||||
{
|
|
||||||
"name": "context"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "dockerfile"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"environment": {
|
|
||||||
"platform": "linux/amd64"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"metadata": {
|
"environment": {
|
||||||
"buildInvocationID": "02tdha2xkbxvin87mz9drhag4",
|
"platform": "linux/amd64"
|
||||||
"buildStartedOn": "2022-12-01T11:50:07.264704131Z",
|
|
||||||
"buildFinishedOn": "2022-12-01T11:50:08.243788739Z",
|
|
||||||
"reproducible": false,
|
|
||||||
"completeness": {
|
|
||||||
"parameters": true,
|
|
||||||
"environment": true,
|
|
||||||
"materials": false
|
|
||||||
},
|
|
||||||
"https://mobyproject.org/buildkit@v1#metadata": {}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"buildInvocationID": "02tdha2xkbxvin87mz9drhag4",
|
||||||
|
"buildStartedOn": "2022-12-01T11:50:07.264704131Z",
|
||||||
|
"buildFinishedOn": "2022-12-01T11:50:08.243788739Z",
|
||||||
|
"reproducible": false,
|
||||||
|
"completeness": {
|
||||||
|
"parameters": true,
|
||||||
|
"environment": true,
|
||||||
|
"materials": false
|
||||||
|
},
|
||||||
|
"https://mobyproject.org/buildkit@v1#metadata": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -363,32 +351,20 @@ $ docker buildx imagetools inspect crazymax/buildkit:attest --format "{{json .SB
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"SPDX": {
|
"SPDX": {
|
||||||
"_type": "https://in-toto.io/Statement/v0.1",
|
"SPDXID": "SPDXRef-DOCUMENT",
|
||||||
"predicateType": "https://spdx.dev/Document",
|
"creationInfo": {
|
||||||
"subject": [
|
"created": "2022-12-01T11:46:48.063400162Z",
|
||||||
{
|
"creators": [
|
||||||
"name": "pkg:docker/crazymax/buildkit@attest?platform=linux%2Famd64",
|
"Tool: syft-v0.60.3",
|
||||||
"digest": {
|
"Tool: buildkit-1ace2bb",
|
||||||
"sha256": "fbd10fe50b4b174bb9ea273e2eb9827fa8bf5c88edd8635a93dc83e0d1aecb55"
|
"Organization: Anchore, Inc"
|
||||||
}
|
],
|
||||||
}
|
"licenseListVersion": "3.18"
|
||||||
],
|
},
|
||||||
"predicate": {
|
"dataLicense": "CC0-1.0",
|
||||||
"SPDXID": "SPDXRef-DOCUMENT",
|
"documentNamespace": "https://anchore.com/syft/dir/run/src/core-0a4ccc6d-1a72-4c3a-a40e-3df1a2ffca94",
|
||||||
"creationInfo": {
|
"files": [...],
|
||||||
"created": "2022-12-01T11:46:48.063400162Z",
|
"spdxVersion": "SPDX-2.2"
|
||||||
"creators": [
|
|
||||||
"Tool: syft-v0.60.3",
|
|
||||||
"Tool: buildkit-1ace2bb",
|
|
||||||
"Organization: Anchore, Inc"
|
|
||||||
],
|
|
||||||
"licenseListVersion": "3.18"
|
|
||||||
},
|
|
||||||
"dataLicense": "CC0-1.0",
|
|
||||||
"documentNamespace": "https://anchore.com/syft/dir/run/src/core-0a4ccc6d-1a72-4c3a-a40e-3df1a2ffca94",
|
|
||||||
"files": [...],
|
|
||||||
"spdxVersion": "SPDX-2.2"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -465,97 +441,73 @@ $ docker buildx imagetools inspect crazymax/buildkit:attest --format "{{json .}}
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"SLSA": {
|
"Provenance": {
|
||||||
"Provenance": {
|
"SLSA": {
|
||||||
"_type": "https://in-toto.io/Statement/v0.1",
|
"builder": {
|
||||||
"predicateType": "https://slsa.dev/provenance/v0.2",
|
"id": ""
|
||||||
"subject": [
|
},
|
||||||
|
"buildType": "https://mobyproject.org/buildkit@v1",
|
||||||
|
"materials": [
|
||||||
{
|
{
|
||||||
"name": "pkg:docker/crazymax/buildkit@attest?platform=linux%2Famd64",
|
"uri": "pkg:docker/docker/buildkit-syft-scanner@stable-1",
|
||||||
"digest": {
|
"digest": {
|
||||||
"sha256": "fbd10fe50b4b174bb9ea273e2eb9827fa8bf5c88edd8635a93dc83e0d1aecb55"
|
"sha256": "b45f1d207e16c3a3a5a10b254ad8ad358d01f7ea090d382b95c6b2ee2b3ef765"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"uri": "pkg:docker/alpine@latest?platform=linux%2Famd64",
|
||||||
|
"digest": {
|
||||||
|
"sha256": "8914eb54f968791faf6a8638949e480fef81e697984fba772b3976835194c6d4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"predicate": {
|
"invocation": {
|
||||||
"builder": {
|
"configSource": {},
|
||||||
"id": ""
|
"parameters": {
|
||||||
},
|
"frontend": "dockerfile.v0",
|
||||||
"buildType": "https://mobyproject.org/buildkit@v1",
|
"locals": [
|
||||||
"materials": [
|
{
|
||||||
{
|
"name": "context"
|
||||||
"uri": "pkg:docker/docker/buildkit-syft-scanner@stable-1",
|
},
|
||||||
"digest": {
|
{
|
||||||
"sha256": "b45f1d207e16c3a3a5a10b254ad8ad358d01f7ea090d382b95c6b2ee2b3ef765"
|
"name": "dockerfile"
|
||||||
}
|
}
|
||||||
},
|
]
|
||||||
{
|
|
||||||
"uri": "pkg:docker/alpine@latest?platform=linux%2Famd64",
|
|
||||||
"digest": {
|
|
||||||
"sha256": "8914eb54f968791faf6a8638949e480fef81e697984fba772b3976835194c6d4"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"invocation": {
|
|
||||||
"configSource": {},
|
|
||||||
"parameters": {
|
|
||||||
"frontend": "dockerfile.v0",
|
|
||||||
"locals": [
|
|
||||||
{
|
|
||||||
"name": "context"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "dockerfile"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"environment": {
|
|
||||||
"platform": "linux/amd64"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"metadata": {
|
"environment": {
|
||||||
"buildInvocationID": "02tdha2xkbxvin87mz9drhag4",
|
"platform": "linux/amd64"
|
||||||
"buildStartedOn": "2022-12-01T11:50:07.264704131Z",
|
|
||||||
"buildFinishedOn": "2022-12-01T11:50:08.243788739Z",
|
|
||||||
"reproducible": false,
|
|
||||||
"completeness": {
|
|
||||||
"parameters": true,
|
|
||||||
"environment": true,
|
|
||||||
"materials": false
|
|
||||||
},
|
|
||||||
"https://mobyproject.org/buildkit@v1#metadata": {}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"buildInvocationID": "02tdha2xkbxvin87mz9drhag4",
|
||||||
|
"buildStartedOn": "2022-12-01T11:50:07.264704131Z",
|
||||||
|
"buildFinishedOn": "2022-12-01T11:50:08.243788739Z",
|
||||||
|
"reproducible": false,
|
||||||
|
"completeness": {
|
||||||
|
"parameters": true,
|
||||||
|
"environment": true,
|
||||||
|
"materials": false
|
||||||
|
},
|
||||||
|
"https://mobyproject.org/buildkit@v1#metadata": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"SBOM": {
|
"SBOM": {
|
||||||
"SPDX": {
|
"SPDX": {
|
||||||
"_type": "https://in-toto.io/Statement/v0.1",
|
"SPDXID": "SPDXRef-DOCUMENT",
|
||||||
"predicateType": "https://spdx.dev/Document",
|
"creationInfo": {
|
||||||
"subject": [
|
"created": "2022-12-01T11:46:48.063400162Z",
|
||||||
{
|
"creators": [
|
||||||
"name": "pkg:docker/crazymax/buildkit@attest?platform=linux%2Famd64",
|
"Tool: syft-v0.60.3",
|
||||||
"digest": {
|
"Tool: buildkit-1ace2bb",
|
||||||
"sha256": "fbd10fe50b4b174bb9ea273e2eb9827fa8bf5c88edd8635a93dc83e0d1aecb55"
|
"Organization: Anchore, Inc"
|
||||||
}
|
],
|
||||||
}
|
"licenseListVersion": "3.18"
|
||||||
],
|
},
|
||||||
"predicate": {
|
"dataLicense": "CC0-1.0",
|
||||||
"SPDXID": "SPDXRef-DOCUMENT",
|
"documentNamespace": "https://anchore.com/syft/dir/run/src/core-0a4ccc6d-1a72-4c3a-a40e-3df1a2ffca94",
|
||||||
"creationInfo": {
|
"files": [...],
|
||||||
"created": "2022-12-01T11:46:48.063400162Z",
|
"spdxVersion": "SPDX-2.2"
|
||||||
"creators": [
|
|
||||||
"Tool: syft-v0.60.3",
|
|
||||||
"Tool: buildkit-1ace2bb",
|
|
||||||
"Organization: Anchore, Inc"
|
|
||||||
],
|
|
||||||
"licenseListVersion": "3.18"
|
|
||||||
},
|
|
||||||
"dataLicense": "CC0-1.0",
|
|
||||||
"documentNamespace": "https://anchore.com/syft/dir/run/src/core-0a4ccc6d-1a72-4c3a-a40e-3df1a2ffca94",
|
|
||||||
"files": [...],
|
|
||||||
"spdxVersion": "SPDX-2.2"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user