From 7566f525cfa57e8f7ac88276c580ff80d04a8852 Mon Sep 17 00:00:00 2001 From: Vishwas Rajashekar Date: Sun, 17 May 2026 18:45:07 +0530 Subject: [PATCH] feat(sync): update examples Signed-off-by: Vishwas Rajashekar --- examples/README.md | 5 ++++ examples/config-sync-normal-local-build.json | 30 -------------------- examples/config-sync-normal-mainline.json | 30 -------------------- 3 files changed, 5 insertions(+), 60 deletions(-) delete mode 100644 examples/config-sync-normal-local-build.json delete mode 100644 examples/config-sync-normal-mainline.json diff --git a/examples/README.md b/examples/README.md index ab51845d..fd6a9cb6 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1286,6 +1286,11 @@ sync can also read the certificates directly under certDir: Besides sync-auth.json file, zot also reads and uses docker credentials by default: https://docs.docker.com/reference/cli/docker/login/#description +### Streaming sync + +Under sync, set `"stream": true` to enable streaming. With this option enabled, blobs are streamed to clients as they are being downloaded +from the upstream registry. This does not require any configuration on the upstream. + ## Search and CVE scanning (Trivy) The `search` extension can include a `cve` section so zot downloads the [Trivy](https://github.com/aquasecurity/trivy) vulnerability database and exposes CVE data via the search API (for example GraphQL). diff --git a/examples/config-sync-normal-local-build.json b/examples/config-sync-normal-local-build.json deleted file mode 100644 index c398a4de..00000000 --- a/examples/config-sync-normal-local-build.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "distSpecVersion": "1.1.1", - "storage": { - "rootDirectory": "./temp/zotlocalbuildnormal" - }, - "http": { - "address": "127.0.0.1", - "port": "8082" - }, - "log": { - "level": "debug" - }, - "extensions": { - "sync": { - "enable": true, - "registries": [ - { - "urls": [ - "http://localhost:9000" - ], - "onDemand": true, - "tlsVerify": false, - "maxRetries": 5, - "retryDelay": "30s", - "syncTimeout": "10m" - } - ] - } - } -} \ No newline at end of file diff --git a/examples/config-sync-normal-mainline.json b/examples/config-sync-normal-mainline.json deleted file mode 100644 index 179ee10a..00000000 --- a/examples/config-sync-normal-mainline.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "distSpecVersion": "1.1.1", - "storage": { - "rootDirectory": "./temp/zotmainlinenormal" - }, - "http": { - "address": "127.0.0.1", - "port": "8081" - }, - "log": { - "level": "debug" - }, - "extensions": { - "sync": { - "enable": true, - "registries": [ - { - "urls": [ - "http://localhost:9000" - ], - "onDemand": true, - "tlsVerify": false, - "maxRetries": 5, - "retryDelay": "30s", - "syncTimeout": "10m" - } - ] - } - } -} \ No newline at end of file