Project: gocrane (Observability and Analysis / Continuous Optimization)
File: mirror.md

Because of various network issues, it is difficult to access GitHub resources such as GitHub Repo, GitHub Release, GitHub Raw Content `raw.githubusercontent.com` in some regions. For a better experience, GoCrane offers several additional mirror repositories for you, but with some latency. GoCrane provides a friendly way to use images to deploy and test. GoCrane builds images based on the CI(GitHub Action). GoCrane now supports linux/amd64 and linux/arm64. GoCrane still cares about arm users, like apple m1/m2. Because of the network problems, GoCrane pushes the images to three different repo at the same time. !!! tips Click these links to see details. If you locate in China, we recommend using the Coding repo. It's fast than other registry repo. If you locate outside of China, we recommend using DockerHub and GitHub Container Registry. However, if you use Coding, the Registry may be slow. Each branch You can try the new features based on the branch images. In addition, we still reserve the early images. Each pull request When you make a pull request to the crane repo, that will trigger CI to build images. In addition, a comment will include image info to the pull request when CI completes. Here use the main branch as an example. The git commit hash is abc123. !!! tips The branch name still points to the last commit. Don't forget to re-pull the images when you want to try the new features. === "DockerHub" ```bash docker pull gocrane/craned:main ``` === "Coding" ```bash docker pull finops-docker.pkg.coding.net/gocrane/crane/craned:main ``` === "GitHub Container Registry" ```bash docker pull ghcr.io/gocrane/crane/craned:main ``` === "DockerHub" ```bash docker pull gocrane/craned:main-abc123 ``` === "Coding" ```bash docker pull finops-docker.pkg.coding.net/gocrane/crane/craned:main-abc123 ``` === "GitHub Container Registry" ```bash docker pull ghcr.io/gocrane/crane/craned:main-abc123 ``` !!! tips Sync the latest version of upstream every six hours | Origin | Mirror | Type | Public | | | | | -- | | https://gocrane.github.io/helm-charts | https://finops-helm.pkg.coding.net/gocrane/gocrane | Helm | | |

| https://finops-helm.pkg.coding.net/gocrane/prometheus-community | Helm | | | https://grafana.github.io/helm-charts | https://finops-helm.pkg.coding.net/gocrane/grafana | Helm | | !!! tips Sync upstream repository every day !!! warning Now Coding is not support to fetch raw contents directly. You must be get token first. | Origin | Mirror | Type | Public | | | | | - | | https://github.com/gocrane/crane.git | https://e.coding.net/finops/gocrane/crane.git | Git | | | https://github.com/gocrane/helm-charts.git | https://e.coding.net/finops/gocrane/helm-charts.git | Git | | | https://github.com/gocrane/api.git | https://e.coding.net/finops/gocrane/api.git | Git | | | https://github.com/gocrane/crane-scheduler.git | https://e.coding.net/finops/gocrane/crane-scheduler.git | Git | | | https://github.com/gocrane/fadvisor.git | https://e.coding.net/finops/gocrane/fadvisor.git | Git | | | Origin | Mirror | Type | Public | | | | | - | | https://github.com/gocrane/crane.git | https://gitee.com/finops/crane | Git | | | https://github.com/gocrane/helm-charts.git | https://gitee.com/finops/helm-charts | Git | | | https://github.com/gocrane/crane-scheduler.git | https://gitee.com/finops/crane-scheduler | Git | | !!! warning Now Coding is not support to fetch raw contents directly. You must be get token first. Here you'll find out how to get the contents of a source file directly from the Coding Git repository via an HTTP request. Similar to regular API requests, the Coding Git repository provides a corresponding API interface. The following is an overview of the related parameters. !!! tips Example "Example" Using https://finops.coding.net/public/gocrane/helm-charts/git/files/main/integration/grafana/override_values.yaml as an example. | Params | Description | example | | - | - | - | | `team` | Name of the team | `finops` | | `project` | Name of the project | `gocrane` | | `repo` | Name of the Git Repo | `helm-charts` | | `branch` | Name of the branch | `main` | | `file path` | The path to the file in the repo | `/integration/grafana/override_values.yaml` | By filling in the following URL construction rules according to the properties mentioned above, you can obtain a URL that can directly access the content of the source file. ```bash https://<team>.coding.net/p/<project>/d/<repo>/git/raw/<branch>/<file path>?download=false https://finops.coding.net/p/gocrane/d/helm-charts/git/raw/main/integration/grafana/override_values.yaml?download=false ``` !!! tips Try this command. ```bash curl https://finops.coding.net/p/gocrane/d/helm-charts/git/raw/main/integration/grafana/override_values.yaml?download=false ```