From 9e9b76b991bbaebf8e25de018de5899c6694a4b4 Mon Sep 17 00:00:00 2001 From: Florian Haftmann Date: Tue, 28 Feb 2023 14:48:40 +0100 Subject: [PATCH] refactor: Official solution for python(3) tools The re-wiring from python to python3 does not need any manual low-level intervention but can use official packages. Change-Id: Idf08a85dd8060d1496802eeca04fb2ca470f6712 --- container/Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/container/Dockerfile b/container/Dockerfile index 494db7c..5ff5b3a 100644 --- a/container/Dockerfile +++ b/container/Dockerfile @@ -22,10 +22,7 @@ COPY ./etc/gunicorn.py /etc/skyline/gunicorn.py RUN apt-get update -y && apt-get install -y --no-install-recommends apt-utils \ && DEBIAN_FRONTEND=noninteractive apt-get install -y \ gcc make nginx traceroute lsof iputils-ping vim git wget curl locales-all ssl-cert \ - python3 python3-pip python3-dev python3-venv \ - && rm -rf /usr/bin/python /usr/bin/pip \ - && ln -s /usr/bin/python3 /usr/bin/python \ - && ln -s /usr/bin/pip3 /usr/bin/pip \ + python3 python3-pip python3-dev python3-venv python-dev-is-python3 \ && mkdir -p /etc/skyline /var/log/skyline /var/lib/skyline \ && git init /skyline-apiserver \ && pip install skyline-apiserver/ -chttps://releases.openstack.org/constraints/upper/master \