aboutsummaryrefslogtreecommitdiff
path: root/docker/skyline
diff options
context:
space:
mode:
authorMichal Arbet <michal.arbet@ultimum.io>2024-08-21 14:08:34 +0200
committerMichal Arbet <michal.arbet@ultimum.io>2024-09-19 12:22:16 +0200
commit1cda1acc7fd22bc42917c723f14c6ee076098297 (patch)
treef8d37bd7c857169ab6ffa38df81da45f60e1fcaa /docker/skyline
parent015fd8d42a42a49243970c703fd513d3d5b2ce74 (diff)
downloadkolla-1cda1acc7fd22bc42917c723f14c6ee076098297.tar.gz
kolla-1cda1acc7fd22bc42917c723f14c6ee076098297.zip
Switch to Dynamic Python Version Detection
This commit removes the hardcoded KOLLA_DISTRO_PYTHON_VERSION and replaces it with dynamic Python version detection during container images build. Dockerfiles and scripts now use general python3 references, simplifying maintenance and ensuring compatibility with future Python versions. Test cases relying on distro_python_version were also cleaned up. Change-Id: I891749598247a5e951ed4a873b16acfd0566f59c
Diffstat (limited to 'docker/skyline')
-rw-r--r--docker/skyline/skyline-apiserver/extend_start.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/skyline/skyline-apiserver/extend_start.sh b/docker/skyline/skyline-apiserver/extend_start.sh
index e762106c0..e1802937b 100644
--- a/docker/skyline/skyline-apiserver/extend_start.sh
+++ b/docker/skyline/skyline-apiserver/extend_start.sh
@@ -3,7 +3,7 @@
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
- SITE_PACKAGES="/var/lib/kolla/venv/lib/python${KOLLA_DISTRO_PYTHON_VERSION}/site-packages"
+ SITE_PACKAGES="/var/lib/kolla/venv/lib/python3/site-packages"
pushd ${SITE_PACKAGES}/skyline_apiserver/db/alembic
alembic upgrade head
popd