File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ setup() {
44 export TESTDIR=~ /tmp/test-python2
55 mkdir -p $TESTDIR
66 export PROJNAME=test-python2
7- export DDEV_NON_INTERACTIVE =true
7+ export DDEV_NONINTERACTIVE =true
88 ddev delete -Oy ${PROJNAME} > /dev/null 2>&1 || true
99 cd " ${TESTDIR} "
1010 ddev config --project-name=${PROJNAME}
@@ -32,6 +32,7 @@ teardown() {
3232 health_checks
3333}
3434
35+ # bats test_tags=release
3536@test " install from release" {
3637 set -eu -o pipefail
3738 cd ${TESTDIR} || ( printf " unable to cd to ${TESTDIR} \n" && exit 1 )
Original file line number Diff line number Diff line change 11#ddev-generated
22# Adapted from https://www.fadedbee.com/2024/01/18/installing-python2-on-debian-12-bookworm/
33ARG TARGETPLATFORM
4- RUN debian_shapshot_url="https://snapshot.debian.org/archive/debian/20240830T023056Z/pool/main" && \
5- mkdir -p /tmp/python2 && \
6- wget -O /tmp/python2/libffi7.deb $debian_shapshot_url/libf/libffi/libffi7_3.3-6_${TARGETPLATFORM##linux/}.deb && \
7- wget -O /tmp/python2/libssl1.1.deb $debian_shapshot_url/o/openssl/libssl1.1_1.1.1w-0+deb11u1_${TARGETPLATFORM##linux/}.deb && \
8- wget -O /tmp/python2/libpython2.7-minimal.deb $debian_shapshot_url/p/python2.7/libpython2.7-minimal_2.7.18-8+deb11u1_${TARGETPLATFORM##linux/}.deb && \
9- wget -O /tmp/python2/libpython2.7-stdlib.deb $debian_shapshot_url/p/python2.7/libpython2.7-stdlib_2.7.18-8+deb11u1_${TARGETPLATFORM##linux/}.deb && \
10- wget -O /tmp/python2/python2.7-minimal.deb $debian_shapshot_url/p/python2.7/python2.7-minimal_2.7.18-8+deb11u1_${TARGETPLATFORM##linux/}.deb && \
11- wget -O /tmp/python2/python2.7.deb $debian_shapshot_url/p/python2.7/python2.7_2.7.18-8+deb11u1_${TARGETPLATFORM##linux/}.deb && \
4+ RUN mkdir -p /tmp/python2 && \
5+ wget -O /tmp/python2/python2.7.tar.gz https://github.com/stasadev/ddev-python2/releases/download/v1.0.0/python2.7_${TARGETPLATFORM##linux/}.tar.gz && \
6+ tar -xzf /tmp/python2/python2.7.tar.gz -C /tmp/python2 && \
127 dpkg -i /tmp/python2/*.deb && \
138 rm -rf /tmp/python2 && \
149 ln -s /usr/bin/python2.7 /usr/local/bin/python
You can’t perform that action at this time.
0 commit comments