Justin Chadwell
a73d07ff7a
imagetools: process com.docker.reference.* annotations
...
To give us the option later down the road of producing recommended OCI
names in BuildKit (using com instead of vnd, woops), we need to update
Buildx to be able to process both.
Ideally, if a Buildx/BuildKit release hadn't been made we could just
switch over, but since we have, we'd need to support both (at least for
a while, eventually we could consider deprecating+removing the vnd
variant).
Signed-off-by: Justin Chadwell <me@jedevc.com>
(cherry picked from commit 642f28f439
)
2 years ago
Justin Chadwell
8c14407fa2
imagetools: silence intoto warnings
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
(cherry picked from commit 7145e021f9
)
2 years ago
Justin Chadwell
78d8b926db
inspect: lazily load attestation data
...
Delay loading the attestation data immediately, and only compute it upon
request. We do this using a deferred function which allows to define the
computation in the same place as before, but perform the computation
later.
With this patch, we ensure that the attestation data is only pulled from
the remote if it is actually referenced in the format string -
otherwise, we can skip it, for improved performance.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
19291d900e
inspect: move attestation loading to struct methods
...
This refactor ensures that the attestations are not output in the JSON
output for "{{ json . }}", and additionally allows future refactors to
dynamically load the attestation contents, ensuring faster performance
when attestations are not used in the output.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
9fb3ff1a27
inspect: change additional spdxs to not have duplicates
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
(cherry picked from commit 484823c97d
)
2 years ago
Justin Chadwell
9d4f38c5fa
inspect: provide access to multiple spdx documents
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
(cherry picked from commit 3ce17b01dc
)
2 years ago
Justin Chadwell
793082f543
inspect: parse sbom and provenance into json structs
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
(cherry picked from commit e68c566c1c
)
2 years ago
Justin Chadwell
fe6f697205
inspect: break after first matching attestation
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
(cherry picked from commit 19d16aa941
)
2 years ago
CrazyMax
8a7a221a7f
imagetools inspect: handle provenance and sbom
...
use stub structs for SLSA/SBOM while waiting for
go-imageinspect library to be public.
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax
e4db8d2a21
imagetools inspect: missing annotations key
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
Tõnis Tiigi
aa1f4389b1
Merge pull request #1396 from crazy-max/fix-indent
...
use double spaces with json marshal indent
2 years ago
Felix de Souza
b68114375f
Address feedback
...
Signed-off-by: Felix de Souza <fdesouza@palantir.com>
2 years ago
Felix de Souza
83a09b3cf2
Synchronise access to the map when printing.
...
Signed-off-by: Felix de Souza <fdesouza@palantir.com>
2 years ago
CrazyMax
abebf4d955
use double spaces with json marshal indent
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
Justin Chadwell
f1a9f91323
imagetools: support cross-repo mounting
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
4ecca34a42
imagetools: give imagetools create a progress bar
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
37ca8631f9
imagetools: copy manifests between repositories
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
d3412f1039
imagetools: refactor combining repository logic
...
This patch modifies the existing combining code in imagetools create to
provide better support for multiple repositories down the road.
Specifically, the code should no longer rely on a single repository
being used for all sources and tags, and should resolve descriptors in
their relevant repositories.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Tonis Tiigi
e4137b2eea
imagetools: handle manifest with nil platform
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
3 years ago
CrazyMax
38311a35f2
imagetools inspect: use buildinfo helper
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago
CrazyMax
215a128fc1
imagetools inspect: missing manifest digest for manifest-list (json)
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago
CrazyMax
4e4eea7814
imagetools inspect: deterministic platform order
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago
CrazyMax
20a55e9184
imagetools inspect: multi-platform support
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago
CrazyMax
6c56109083
imagetools inspect: add --format flag
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago
Tõnis Tiigi
62bdf4d85e
Merge pull request #868 from crazy-max/discard-containerd-logger
...
imagetools resolver: discard containerd logger output
3 years ago
CrazyMax
5c5125f30e
imagetools resolver: fix deprecated client opt
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago
CrazyMax
e9cf2cbe32
imagetools resolver: discard containerd logger output
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago
Tonis Tiigi
c62472121b
allow multi-node push and imagetools to use custom registry config
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
3 years ago
Tonis Tiigi
88d0775692
refactor accessing registry configs via drivers
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
3 years ago
Tonis Tiigi
b497587f21
imagetools: fix pushing same image with multiple names
...
containerd pusher can’t handle this case atm so we
need to make sure we always create a new resolver
for each name.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
3 years ago
Tonis Tiigi
328441cdc6
imagetools: fix merging JSON descriptor with old one
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
4 years ago
Tonis Tiigi
378bf70d4b
refactor driver auth for easier passing
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
4 years ago
Tonis Tiigi
3b69482a2f
docker-container: ensure credentials are passed when pulling buildkit image
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
4 years ago
Tonis Tiigi
9b57f9e872
imagetools: keep arm variant
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
38889013af
build: fix push-by-digest for multi-node
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
0398fa337b
build: multi-node build support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
96b1892b63
imagetools: push support for create
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
80ad78e372
imagetools: add create support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
0a28ec6f38
imagetools: implement inspect for manifest list
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago