ocboot icon indicating copy to clipboard operation
ocboot copied to clipboard

feat: Parametrize image registry

Open olljanat opened this issue 1 year ago • 3 comments

Parametrize image registry so those who prefer Docker Hub can get images from there like this:

export CLOUDPODS_REPO=docker.io/yunion
export MARIADB_REPO=docker.io/library
docker compose pull

This does not change behavior for those who don't have those environment variables defined. Look more information from here

PS. Note that yunion/compose-service-init:v3.11.9 seems to be missing from Docker Hub and should be uploaded to there (latest is v3.11.4 at the moment).

olljanat avatar Mar 29 '25 08:03 olljanat

@olljanat Thanks for the contribution. The compose files are generated by ./generate-compose.py script and you can use make generate-docker-compose-manifests and make generate-baremetal-compose-manifests to rewrite the docker-compose.yml files. So changing the repo here for cloudpods services and mysql repo here, and then regerating docker-compose.yml is more reasonable.

zexi avatar Mar 31 '25 09:03 zexi

@zexi Thanks for quick review. PR updated.

olljanat avatar Mar 31 '25 16:03 olljanat

PS. Note that yunion/compose-service-init:v3.11.9 seems to be missing from Docker Hub and should be uploaded to there (latest is v3.11.4 at the moment).

@olljanat Thanks for pointing it out. I've uploaded the yunion/compose-service-init:v3.11.9 image.

zexi avatar Apr 01 '25 03:04 zexi