From: garciadeblas Date: Thu, 23 Mar 2023 16:31:44 +0000 (+0100) Subject: Update base image for Airflow to support Python 3.10 X-Git-Tag: release-v14.0-start~99 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=75e3d990ec1cdb318f40f40676724a42e6528381;p=osm%2Fdevops.git Update base image for Airflow to support Python 3.10 Change-Id: I4d0bd5be38faff10de4bd2dbaaa9a6010ab12732 Signed-off-by: garciadeblas --- diff --git a/docker/Airflow/Dockerfile b/docker/Airflow/Dockerfile index 804cc7f7..bf72444c 100644 --- a/docker/Airflow/Dockerfile +++ b/docker/Airflow/Dockerfile @@ -15,7 +15,7 @@ # limitations under the License. ####################################################################################### -FROM apache/airflow:2.5.2-python3.8 +FROM apache/airflow:2.5.2-python3.10 USER root RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ DEBIAN_FRONTEND=noninteractive apt-get --yes install \ @@ -33,10 +33,10 @@ RUN mkdir /tmp/osm RUN dpkg-deb -x osm_common.deb /tmp/osm RUN dpkg-deb -x osm_ngsa.deb /tmp/osm -RUN mv /tmp/osm/usr/lib/python3/dist-packages/* /home/airflow/.local/lib/python3.8/site-packages/ +RUN mv /tmp/osm/usr/lib/python3/dist-packages/* /home/airflow/.local/lib/python3.10/site-packages/ RUN rm -rf /tmp/osm RUN pip3 install \ - -r /home/airflow/.local/lib/python3.8/site-packages/osm_common/requirements.txt \ - -r /home/airflow/.local/lib/python3.8/site-packages/osm_ngsa/requirements.txt + -r /home/airflow/.local/lib/python3.10/site-packages/osm_common/requirements.txt \ + -r /home/airflow/.local/lib/python3.10/site-packages/osm_ngsa/requirements.txt