0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-27 23:01:43 -05:00
zot/pkg/extensions/sync
peusebiu 377aff1853
fix(sync): fixed skipping docker images when they already synced (#1521)
before syncing an image we first check if it's already present in our storage
to do that we get the manifest from remote and compare it with the local one
but in the case of syncing docker images, because the conversion to OCI format is done while
syncing, we get a docker manifest before conversion, so sync detects that local manifest and
remote one are different, so it starts syncing again.

to overcome this, convert remote docker manifests to OCI manifests and then compare.

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
2023-06-21 11:05:52 -07:00
..
constants refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
httpclient refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
references feat(sync): sync references(signatures/artifacts) recursively (#1500) 2023-06-16 10:27:33 -07:00
content.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
content_internal_test.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
local.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
oci_layout.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
on_demand.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
on_demand_disabled.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
remote.go fix(sync): fixed skipping docker images when they already synced (#1521) 2023-06-21 11:05:52 -07:00
service.go feat(sync): sync references(signatures/artifacts) recursively (#1500) 2023-06-16 10:27:33 -07:00
sync.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
sync_disabled_test.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
sync_internal_test.go fix(sync): fixed skipping docker images when they already synced (#1521) 2023-06-21 11:05:52 -07:00
sync_test.go fix(sync): fixed skipping docker images when they already synced (#1521) 2023-06-21 11:05:52 -07:00
utils.go fix(sync): fixed skipping docker images when they already synced (#1521) 2023-06-21 11:05:52 -07:00