mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 16:31:16 +00:00
scripts: dev_cli: add possibly to use different container registry
Currently if container registry is inaccessible the image will be built locally and that takes time. This patch adds support to use mirror registry. To use a different registry CTR_IMAGE environment variable must be set. For example: CTR_IMAGE="registry/cloud-hypervisor" scripts/dev_cli.sh or export CTR_IMAGE="registry/cloud-hypervisor" scripts/dev_cli.sh Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
This commit is contained in:
parent
6b79aca32d
commit
70cfd1be67
@ -8,7 +8,7 @@ CLI_NAME="Cloud Hypervisor"
|
|||||||
|
|
||||||
CTR_IMAGE_TAG="ghcr.io/cloud-hypervisor/cloud-hypervisor"
|
CTR_IMAGE_TAG="ghcr.io/cloud-hypervisor/cloud-hypervisor"
|
||||||
CTR_IMAGE_VERSION="20230620-0"
|
CTR_IMAGE_VERSION="20230620-0"
|
||||||
CTR_IMAGE="${CTR_IMAGE_TAG}:${CTR_IMAGE_VERSION}"
|
: "${CTR_IMAGE:=${CTR_IMAGE_TAG}:${CTR_IMAGE_VERSION}}"
|
||||||
|
|
||||||
DOCKER_RUNTIME="docker"
|
DOCKER_RUNTIME="docker"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user