Skip to content

Commit

Permalink
replace gh proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
shaowenchen committed Sep 11, 2024
1 parent eab1f94 commit 09bd4fb
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/content/opscli-case.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
```bash
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
apk add curl
curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh |VERSION=latest sh -
curl -sfL https://ghp.ci/https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh |VERSION=latest sh -
```

- 在节点安装 fio
Expand Down
4 changes: 2 additions & 2 deletions docs/content/opscli-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
国内使用:

```bash
curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh |VERSION=latest sh -
curl -sfL https://ghp.ci/https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh |VERSION=latest sh -
```

国外使用:
Expand All @@ -23,7 +23,7 @@ curl -sfL https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh | VER
国内使用:

```bash
/usr/local/bin/opscli shell --content "curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh | VERSION=latest sh -" -i hosts.txt
/usr/local/bin/opscli shell --content "curl -sfL https://ghp.ci/https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh | VERSION=latest sh -" -i hosts.txt
```

国外使用:
Expand Down
2 changes: 1 addition & 1 deletion getcli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ http_code=$(curl --connect-timeout 2 -s -o temp.out -w '%{http_code}' https://gi
rm -rf temp.out || true

if [ $http_code -ne 302 ]; then
DOWNLOAD_URL="https://mirror.ghproxy.com/${DOWNLOAD_URL}"
DOWNLOAD_URL="https://ghp.ci/${DOWNLOAD_URL}"
fi

OPSTEMPDIR=$(mktemp -d)
Expand Down
2 changes: 1 addition & 1 deletion pkg/constants/net.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package constants

const DefaultProxy = "https://mirror.ghproxy.com/"
const DefaultProxy = "https://ghp.ci/"
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If Good network connections to GitHub

else Poor network connections to GitHub

`curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh |VERSION=latest sh -`
`curl -sfL https://ghp.ci/https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh |VERSION=latest sh -`

### install Ops Controller

Expand Down
2 changes: 1 addition & 1 deletion tasks/collect-gpu-log.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
content: |
rm -rf /tmp/col-gpu-log-${random} || true
mkdir -p /tmp/col-gpu-log-${random} && cd /tmp/col-gpu-log-${random}
curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/shaowenchen/hubimage/main/ai/col_gpu_log.sh | bash
curl -sfL https://ghp.ci/https://raw.githubusercontent.com/shaowenchen/hubimage/main/ai/col_gpu_log.sh | bash
mv *.tar.gz ${hostname}-col-gpu-log-${random}.tar.gz
- name: upload to s3
remotefile: s3://collect-gpu-log/${hostname}-col-gpu-log-${random}.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions tasks/cron-host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: add dragonfly docker for containerd
content: |
if [ ! -f /usr/local/bin/gen-containerd-hosts.sh ]; then
curl -s https://mirror.ghproxy.com/https://raw.githubusercontent.com/shaowenchen/hubimage/main/nydus/dfget-containerd.sh | bash -
curl -s https://ghp.ci/https://raw.githubusercontent.com/shaowenchen/hubimage/main/nydus/dfget-containerd.sh | bash -
fi
- name: add dragonfly others domain
content: |
Expand All @@ -24,7 +24,7 @@ spec:
- name: add opscli
content: |
if [ ! -f /usr/local/bin/opscli ]; then
curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh | VERSION=latest sh -
curl -sfL https://ghp.ci/https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh | VERSION=latest sh -
fi
- name: add nerdctl
content: |
Expand Down
2 changes: 1 addition & 1 deletion tasks/install-descheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
typeRef: cluster
variables:
proxy:
default: https://mirror.ghproxy.com/
default: https://ghp.ci/
action:
default: apply
kubeconfig:
Expand Down
2 changes: 1 addition & 1 deletion tasks/install-metricsserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
typeRef: cluster
variables:
proxy:
default: https://mirror.ghproxy.com/
default: https://ghp.ci/
action:
default: apply
version:
Expand Down
2 changes: 1 addition & 1 deletion tasks/install-nerdctl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
desc: install nerdctl tool in specified host
variables:
proxy:
default: https://mirror.ghproxy.com/
default: https://ghp.ci/
version:
default: 1.7.6
arch:
Expand Down
2 changes: 1 addition & 1 deletion tasks/install-nydus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
desc: install nydus kit in specified host
variables:
proxy:
default: https://mirror.ghproxy.com/
default: https://ghp.ci/
version:
default: 2.2.4
rpcversion:
Expand Down
2 changes: 1 addition & 1 deletion tasks/install-opscli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
desc: install opscli tool in specified host
variables:
proxy:
default: https://mirror.ghproxy.com/
default: https://ghp.ci/
steps:
- name: Install Opscli
content: curl -sfL ${proxy}https://raw.githubusercontent.com/shaowenchen/ops/main/getcli.sh | VERSION=latest sh -
2 changes: 1 addition & 1 deletion tasks/set-mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ spec:
steps:
- name: install required packages
content: |
PROXY="https://mirror.ghproxy.com/" &&
PROXY="https://ghp.ci/" &&
curl -sfL "$PROXY"https://raw.githubusercontent.com/shaowenchen/hubimage/main/mirror/ubuntu/get.sh | sh -
2 changes: 1 addition & 1 deletion tasks/set-os-mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
desc: set os mirror friendly to China for specified host
variables:
proxy:
default: https://mirror.ghproxy.com/
default: https://ghp.ci/
steps:
- name: Set mirror
content: curl -sfL ${proxy}https://raw.githubusercontent.com/shaowenchen/hubimage/main/mirror/get.sh | sh -
2 changes: 1 addition & 1 deletion tasks/velero-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
velero_version:
default: v1.9.2
download_url:
default: https://mirror.ghproxy.com/https://github.com/vmware-tanzu/velero/releases/download/${velero_version}/velero-${velero_version}-linux-amd64.tar.gz
default: https://ghp.ci/https://github.com/vmware-tanzu/velero/releases/download/${velero_version}/velero-${velero_version}-linux-amd64.tar.gz
region:
required: true
endpoint:
Expand Down

0 comments on commit 09bd4fb

Please sign in to comment.