Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Use hub.docker.com to mirror the images that will be used by OpenPAI hosted on gcr.io. #5649

Closed
wants to merge 1 commit into from

Conversation

siaimes
Copy link
Contributor

@siaimes siaimes commented Nov 4, 2021

Use hub.docker.com to mirror the image that will be used by OpenPAI hosted on gcr.io.

Signed-off-by: siaimes 34199488+siaimes@users.noreply.github.com

… hosted on `gcr.io`.

Signed-off-by: siaimes <34199488+siaimes@users.noreply.github.com>
@coveralls
Copy link

Coverage Status

Coverage remained the same at 33.681% when pulling 85f8b61 on siaimes:mirror_gcr_io into ea19af1 on microsoft:master.

@siaimes
Copy link
Contributor Author

siaimes commented Nov 4, 2021

Ref: https://github.com/AliyunContainerService/image-syncer

  1. Add DOCKERHUB_USERNAME and DOCKERHUB_PASSWORD secrets with username and token of hub.docker.com:

image

  1. Every time a new version is released, the workflow will synchronize the image of gcr.io to the designated registry:

image

  1. For users who cannot access gcr.io, just add the following lines to the configuration file, and then run the installation script, everything will be fine:
openpai_kubespray_extra_var:
  kube_image_repo: "DOCKERHUB_USERNAME"
  gcr_image_repo: "DOCKERHUB_USERNAME"
  pod_infra_image_repo: "DOCKERHUB_USERNAME/pause-{{ image_arch }}"
  dnsautoscaler_image_repo: "DOCKERHUB_USERNAME/cluster-proportional-autoscaler-{{ image_arch }}"

example:

image

Because we only synchronize the images required by this project, I think there should be no abuse issues.

@siaimes siaimes changed the title Use hub.docker.com to mirror the image that will be used by OpenPAI hosted on gcr.io. Use hub.docker.com to mirror the images that will be used by OpenPAI hosted on gcr.io. Nov 4, 2021
@siaimes siaimes closed this Nov 19, 2021
@siaimes siaimes deleted the mirror_gcr_io branch December 7, 2021 03:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants