1 Star 0 Fork 2

triarii/docker-pull-proxy

forked from tianyue/docker-pull-proxy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ansible.sh 2.14 KB
一键复制 编辑 原始数据 按行查看 历史
冀宇航 提交于 2022-05-06 07:22 . fix: update trigger_file path in tag.sh
# cat trigger.txt |awk '{print "docker pull "$2} '
# cat trigger.txt |awk '{print "docker tag "$2 " " $1} '
# cat trigger.txt |awk '{print "ansible all -m command -a \"docker pull " $2 "\"" } '
# cat trigger.txt |awk '{print "ansible all -m command -a \"docker tag " $2 $1 "\"" } '
# ansible all -m script -a "tag.sh"
# file=$(date +%Y%m%d-%H%M%S)
now=$(date +%Y%m%d-%H%M%S)
trigger_file=trigger.${now}.txt
tag_sh_file=tag.${now}.sh
curl -s https://github.jiyuhang.workers.dev/https://raw.githubusercontent.com/Ji-Yuhang/docker-pull-proxy/main/trigger.txt -o $trigger_file
echo $trigger_file
cat $trigger_file |awk '{print "docker pull "$2} '
cat $trigger_file |awk '{print "docker tag "$2 " " $1} '
cat $trigger_file |awk '{print "docker pull "$2} ' > $tag_sh_file
cat $trigger_file |awk '{print "docker tag "$2 " " $1} ' >> $tag_sh_file
# cat $file |awk '{print "ansible all -m command -a \"docker pull " $2 "\"" } '
# cat $file |awk '{print "ansible all -m command -a \"docker tag " $2 $1 "\"" } '
echo $tag_sh_file
ansible all -m script -a $tag_sh_file
# proxy curl https://raw.githubusercontent.com/Ji-Yuhang/docker-pull-proxy/main/trigger.txt?token=GHSAT0AAAAAABT3LQ3UM7T4XNGIX4QBECPMYTT4KPQ -o
# curl https://raw.githubusercontent.com/Ji-Yuhang/docker-pull-proxy/main/trigger.txt |awk '{print "ansible all -m command -a \"docker pull " $2 "\"" } '
# curl https://raw.githubusercontent.com/Ji-Yuhang/docker-pull-proxy/main/trigger.txt |awk '{print "ansible all -m command -a \"docker tag " $2 $1 "\"" } '
# curl https://github.jiyuhang.workers.dev/https://raw.githubusercontent.com/Ji-Yuhang/docker-pull-proxy/main/trigger.txt |awk '{print "ansible all -m command -a \"docker pull " $2 "\"" } '
# curl https://github.jiyuhang.workers.dev/https://raw.githubusercontent.com/Ji-Yuhang/docker-pull-proxy/main/trigger.txt |awk '{print "ansible all -m command -a \"docker tag " $2 $1 "\"" } '
# ansible all -m command -a 'docker pull registry.cn-beijing.aliyuncs.com/ijx-public/kube-state-metrics:v2.0.0'
# ansible all -m command -a 'docker tag registry.cn-beijing.aliyuncs.com/ijx-public/kube-state-metrics:v2.0.0 k8s.gcr.io/kube-state-metrics/kube-state-metrics:v2.0.0'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/triarii/docker-pull-proxy.git
git@gitee.com:triarii/docker-pull-proxy.git
triarii
docker-pull-proxy
docker-pull-proxy
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385