mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-07-15 21:57:15 +00:00
dev_cli: Always pull the latest container image
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
4b462a54ee
commit
2fc86ffea6
@ -113,6 +113,13 @@ ensure_build_dir() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Make sure we're using the latest dev container, by just pulling it.
|
||||||
|
ensure_latest_ctr() {
|
||||||
|
$DOCKER_RUNTIME pull "$CTR_IMAGE"
|
||||||
|
|
||||||
|
ok_or_die "Error pulling container image. Aborting."
|
||||||
|
}
|
||||||
|
|
||||||
# Fix main directory permissions after a container ran as root.
|
# Fix main directory permissions after a container ran as root.
|
||||||
# Since the container ran as root, any files it creates will be owned by root.
|
# Since the container ran as root, any files it creates will be owned by root.
|
||||||
# This fixes that by recursively changing the ownership of /cloud-hypervisor to the
|
# This fixes that by recursively changing the ownership of /cloud-hypervisor to the
|
||||||
@ -325,5 +332,6 @@ cmd=cmd_$1
|
|||||||
shift
|
shift
|
||||||
|
|
||||||
ensure_build_dir
|
ensure_build_dir
|
||||||
|
ensure_latest_ctr
|
||||||
|
|
||||||
$cmd "$@"
|
$cmd "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user