kas-container: Drop container image prefix
The current default causes spurious pulls even when the image is already locally available, at least with podman 2.0.x. Looking through podman how-tos, none mentions that this prefix is required, and the image_default_transport in containers.con is generally "docker://". So it's safe to drop it for better default behavior. If a custom local setup deviate, users can still override KAS_CONTAINER_IMAGE_PATH, prepending what is desired. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
e5701a03a6
commit
3403ba4923
@ -66,14 +66,12 @@ trace()
|
||||
KAS_IMAGE_VERSION_DEFAULT="2.2"
|
||||
KAS_CONTAINER_IMAGE_PATH_DEFAULT="ghcr.io/siemens/kas"
|
||||
KAS_CONTAINER_IMAGE_NAME_DEFAULT="kas"
|
||||
KAS_CONTAINER_IMAGE_PREFIX_DEFAULT=""
|
||||
|
||||
set_container_image_var() {
|
||||
KAS_IMAGE_VERSION="${KAS_IMAGE_VERSION:-${KAS_IMAGE_VERSION_DEFAULT}}"
|
||||
KAS_CONTAINER_IMAGE_NAME="${KAS_CONTAINER_IMAGE_NAME:-${KAS_CONTAINER_IMAGE_NAME_DEFAULT}}"
|
||||
KAS_CONTAINER_IMAGE_PATH="${KAS_CONTAINER_IMAGE_PATH:-${KAS_CONTAINER_IMAGE_PATH_DEFAULT}}"
|
||||
KAS_CONTAINER_IMAGE_PREFIX="${KAS_CONTAINER_IMAGE_PREFIX:-${KAS_CONTAINER_IMAGE_PREFIX_DEFAULT}}"
|
||||
KAS_CONTAINER_IMAGE="${KAS_CONTAINER_IMAGE_PREFIX}${KAS_CONTAINER_IMAGE_PATH}/${KAS_CONTAINER_IMAGE_NAME}:${KAS_IMAGE_VERSION}"
|
||||
KAS_CONTAINER_IMAGE="${KAS_CONTAINER_IMAGE_PATH}/${KAS_CONTAINER_IMAGE_NAME}:${KAS_IMAGE_VERSION}"
|
||||
}
|
||||
|
||||
if [ -n "${KAS_WORK_DIR}" ]; then
|
||||
@ -101,7 +99,6 @@ docker)
|
||||
;;
|
||||
podman)
|
||||
KAS_CONTAINER_COMMAND="podman"
|
||||
KAS_CONTAINER_IMAGE_PREFIX_DEFAULT="docker://"
|
||||
KAS_RUNTIME_ARGS="--userns=keep-id --security-opt label=disable"
|
||||
;;
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user