From dcca4aa0a11aec410f4a343d51a12c8b17a48a85 Mon Sep 17 00:00:00 2001 From: Jialei Date: Tue, 15 Nov 2022 13:40:17 +0800 Subject: [PATCH] fix(docker): yq in entrypoint can not find after global py version changes --- client/scripts/sw-docker-entrypoint | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/scripts/sw-docker-entrypoint b/client/scripts/sw-docker-entrypoint index fa4c6c2f64..008f7792bf 100755 --- a/client/scripts/sw-docker-entrypoint +++ b/client/scripts/sw-docker-entrypoint @@ -78,7 +78,8 @@ pre_check() { } set_python() { - _MANIFEST_RUNTIME=$(yq -r .environment.python ${SWRT_DIR}/_manifest.yaml) || exit 1 + # yq only installed for py3.8 + _MANIFEST_RUNTIME=$(python3.8 yq -r .environment.python ${SWRT_DIR}/_manifest.yaml) || exit 1 _RUNTIME="python${_MANIFEST_RUNTIME}" echo "**** DETECT RUNTIME: ${_RUNTIME}"