Skip to content
Snippets Groups Projects
Commit 75e3d990 authored by garciadeblas's avatar garciadeblas
Browse files

Update base image for Airflow to support Python 3.10


Change-Id: I4d0bd5be38faff10de4bd2dbaaa9a6010ab12732
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent fb220c0c
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment