Bug 1895338 - Add core22 Snap to unblock newer versions of Snapcraft against Python 3.10 r=jcristau a=RyanVM

Original Revision: https://phabricator.services.mozilla.com/D209716

Differential Revision: https://phabricator.services.mozilla.com/D210052
This commit is contained in:
Alexandre Lissy 2024-05-14 16:23:01 +00:00
parent a495d4be7c
commit 2e2bfea706

View File

@ -40,6 +40,8 @@ locale-gen "$LANG"
COPY download_and_install_snap.sh .
RUN bash download_and_install_snap.sh 'core20'
# Snapcraft now requires core22 for python3.10
RUN bash download_and_install_snap.sh 'core22'
RUN bash download_and_install_snap.sh 'gnome-3-38-2004'
RUN bash download_and_install_snap.sh 'gnome-3-38-2004-sdk'
RUN bash download_and_install_snap.sh 'snapcraft'
@ -57,6 +59,8 @@ RUN snap_version="$(awk '/^version:/{print $2}' /snap/snapcraft/current/meta/sna
RUN echo 'exec "$SNAP/usr/bin/python3" "$SNAP/bin/snapcraft" "$@"' >> /snap/bin/snapcraft
RUN chmod +x /snap/bin/snapcraft
RUN snapcraft version
RUN mkdir /scripts/
WORKDIR /scripts/
# Copy everything in the docker/firefox-snap folder but the Dockerfile