you need jq
first.
Steps:
- download the script && chmod +x
- enable "delete" inside docker registry container
/etc/docker/registry/config.yml
storage:
delete:
0 |
echo "Local Linguist (linguist for non repos)" | |
if git status 2> /dev/null > /dev/null; then | |
echo "!!! This directory is already a git repository... please use the 'linguist' command instead" | |
echo "!!! If this command exits unclean it will leave a git repository behind" | |
echo "!!! You can remove the git repository by running 'rm -Rf .git'" | |
else | |
git init 2> /dev/null > /dev/null | |
git add --all 2> /dev/null > /dev/null | |
git commit -m "local linguist auto commit" 2> /dev/null > /dev/null | |
linguist "$@" |
you need jq
first.
Steps:
/etc/docker/registry/config.yml
storage:
delete:
# ossutl download addr: http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/50452/intl_zh/1488523315888/ossutil | |
# -c specify oss config file | |
# `/root/.ossold` is for source bucket, `/root/.osspaas` is for dest bucket | |
ossutil cp oss://paas oss -r -u -j 20 -c /root/.ossold | |
ossutil cp oss oss://terminus-paas/ -r -u --snapshot-path /root/snapshot-path -j 20 --parallel 3 -c /root/.osspaas |