1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

19 Commits

Author SHA1 Message Date
Stéphane Graber
5c1618953c client/oci: Use SHA256 of combined layers as digest
The digest from the registry refers to the image itself rather than a
particular build. As a result it would lead to the same digest on all
architectures.

On our end, for cache handling, we need each architecture to have its
own stable digest. Relying on the particular layers should achieve that.

Closes #2682

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-11-28 17:33:56 -05:00
Angelos Kolaitis
a0aad161fc client/oci: Allow OCI image names with a pinned hash
Enables specifying OCI images as `IMAGE:TAG@HASH`

Signed-off-by: Angelos Kolaitis <neoaggelos@gmail.com>
2025-09-07 12:08:17 +03:00
Stéphane Graber
a83e437873 client: Add configurable temp directory
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-07-31 19:23:09 -04:00
Cory Chang
d45cf16c29 client/oci: Refactor skopeo logic and add credentials support
Signed-off-by: Cory Chang <ccory2004@gmail.com>
2025-07-29 01:57:18 -04:00
Nathan Chase
48a2cd3f22 client: Don't needlessly use format string functions
Signed-off-by: Nathan Chase <ntc477@utexas.edu>
2025-05-23 01:39:12 -04:00
Piotr Resztak
727041a1c2 client: Use the umoci Go package instead of the command
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-05-21 14:14:40 -04:00
Stéphane Graber
080446fbf9 client/oci: Only replace the first match
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-04-02 21:59:59 -04:00
Stéphane Graber
1e04b9c8ed client: Update for ArchitectureID
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-04-02 21:59:54 -04:00
Stéphane Graber
54e7c21734 client: Make golangci-lint clean
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-04-02 19:43:11 -04:00
Piotr Resztak
4f3bef7c72 client: Add GetImagesAllProjectsWithFilter
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
2025-04-01 20:34:15 +02:00
Stéphane Graber
6f07fd5689 client: Use strings.ReplaceAll
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-03-28 17:34:42 -04:00
Stéphane Graber
547f98e68f client: Fix gofumpt
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-03-17 18:00:32 -04:00
m2
8fe18ae832 fix: Don't attempt to download signatures for oci
Currently, incus uses skopeo to copy a docker image to an oci formatted
file tree. The OCI:/ endpoint does not support copying signatures.
Docker Hub mostly does not use signed images, but several projects are
using cosign or gpg to sign their images which the OCI:/ endpoint does
not support. This adds the flag to skopeo to not attempt to copy the
unsupported signatures as a bandaid until a different method that
supports signatures is identified.

Signed-off-by: m2 <69128853+m2Giles@users.noreply.github.com>
2025-02-22 17:11:32 -05:00
Winicius Silva
af45f3af38 client: Add proxy host to skopoe calls
The proxy host address was not passed to skopoe and as a consequence, it is
not possible to connect to proxy to inspect OCI image.

Closes: #1509

Signed-off-by: Winicius Silva <winiciusab12@gmail.com>
2024-12-17 18:07:52 -05:00
Dan Biagini
3d14825457 client/oci: Add debug logging for subprocess commands
Signed-off-by: Dan Biagini <dbiagini@gmail.com>
2024-12-09 21:02:36 -05:00
Stéphane Graber
cc12cad4b5 client: Capture original OCI image identifier
Closes #1273

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2024-10-02 16:15:08 -04:00
Stéphane Graber
5c01e21a85 client/oci: Add errors for missing umoci
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2024-07-15 12:19:00 -04:00
Stéphane Graber
987bd27c20 client/oci: Add errors for missing skopeo
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2024-07-15 12:17:26 -04:00
Stéphane Graber
b5280ed636 client: Add basic OCI registry client
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2024-07-11 11:21:18 -04:00