{"id":28960252,"url":"https://github.com/lework/sync_image","last_synced_at":"2025-07-10T19:33:21.788Z","repository":{"id":45547077,"uuid":"348607370","full_name":"lework/sync_image","owner":"lework","description":"Synchronize container image","archived":false,"fork":false,"pushed_at":"2024-01-22T07:57:29.000Z","size":52,"stargazers_count":19,"open_issues_count":0,"forks_count":21,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-24T01:12:02.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-03-17T06:46:21.000Z","updated_at":"2024-08-26T05:01:24.000Z","dependencies_parsed_at":"2024-01-04T11:29:41.615Z","dependency_job_id":"e5b2ab74-642b-4570-b60a-2416bd2093ab","html_url":"https://github.com/lework/sync_image","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lework/sync_image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Fsync_image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Fsync_image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Fsync_image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Fsync_image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lework","download_url":"https://codeload.github.com/lework/sync_image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Fsync_image/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264639907,"owners_count":23642313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-24T01:11:57.675Z","updated_at":"2025-07-10T19:33:21.769Z","avatar_url":"https://github.com/lework.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sync_image\n\n[![sync](https://github.com/lework/sync_image/actions/workflows/sync.yml/badge.svg?branch=main)](https://github.com/lework/sync_image/actions/workflows/sync.yml)\n\nSynchronize container image\n\n## 使用\n\n仓库使用 `Github Action` 每天自动运行脚本同步镜像到阿里云。\n\n动态同步的镜像列表。\n\u003e 默认获取最新的 5 个 tag 用于同步。\n\n```\ndocker.elastic.co/elasticsearch/elasticsearch\ndocker.elastic.co/kibana/kibana\ndocker.elastic.co/logstash/logstash\ndocker.elastic.co/beats/filebeat\ndocker.elastic.co/beats/heartbeat\ndocker.elastic.co/beats/packetbeat\ndocker.elastic.co/beats/auditbeat\ndocker.elastic.co/beats/journalbeat\ndocker.elastic.co/beats/metricbeat\ndocker.elastic.co/apm/apm-server\ndocker.elastic.co/app-search/app-search\n```\n\n```\nquay.io/coreos/flannel\nquay.io/cephcsi/cephcsi\nquay.io/prometheus/prometheus\nquay.io/prometheus/alertmanager\nquay.io/prometheus/pushgateway\nquay.io/prometheus/blackbox-exporter\nquay.io/prometheus/node-exporter\nquay.io/prometheus-operator/prometheus-config-reloader\nquay.io/prometheus-operator/prometheus-operator\n```\n\n```\nk8s.gcr.io/etcd\nk8s.gcr.io/kube-proxy\nk8s.gcr.io/kube-apiserver\nk8s.gcr.io/kube-scheduler\nk8s.gcr.io/kube-controller-manager\nk8s.gcr.io/coredns/coredns\nk8s.gcr.io/dns/k8s-dns-node-cache\nk8s.gcr.io/ingress-nginx/controller\nk8s.gcr.io/metrics-server/metrics-server\nk8s.gcr.io/ingress-nginx/kube-webhook-certgen\nk8s.gcr.io/kube-state-metrics/kube-state-metrics\nk8s.gcr.io/sig-storage/nfs-subdir-external-provisioner\nk8s.gcr.io/sig-storage/csi-node-driver-registrar\nk8s.gcr.io/sig-storage/csi-provisioner\nk8s.gcr.io/sig-storage/csi-resizer\nk8s.gcr.io/sig-storage/csi-snapshotter\nk8s.gcr.io/sig-storage/csi-attacher\n```\n\n\n静态同步的镜像列表。\n\u003e 使用指定的 tag 用于同步。\n\n```\nk8s.gcr.io/pause\nk8s.gcr.io/defaultbackend-amd64\n```\n\n同步规则\n\n```\nk8s.gcr.io/{image_name}  ==\u003e  registry.cn-hangzhou.aliyuncs.com/kainstall/{image_name}\n```\n\n**拉取镜像**\n\n```bash\n$ docker pull registry.cn-hangzhou.aliyuncs.com/kainstall/kube-scheduler:[镜像版本号]\n```\n\n**搜索镜像**\n\n可通过 [阿里云镜像中心](https://cr.console.aliyun.com/cn-hangzhou/instances/images) 搜索同步镜像, 搜索字符如 `kainstall/`, `kainstall/kube-scheduler`\n\n\n## 文件介绍\n\n- `config.yaml`: 供 `generate_sync_yaml.py` 脚本使用，此文件配置了需要动态(获取`last`个最新的版本)同步的镜像列表。\n- `custom_sync.yaml`: 自定义的 [`skopeo`](https://github.com/containers/skopeo) 同步源配置文件。\n- `generate_sync_yaml.py`: 根据配置，动态生成 [`skopeo`](https://github.com/containers/skopeo) 同步源配置文件。\n- `sync.sh`: 用于执行同步操作。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flework%2Fsync_image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flework%2Fsync_image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flework%2Fsync_image/lists"}