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() {
4
4
export TESTDIR=~ /tmp/test-python2
5
5
mkdir -p $TESTDIR
6
6
export PROJNAME=test-python2
7
- export DDEV_NON_INTERACTIVE =true
7
+ export DDEV_NONINTERACTIVE =true
8
8
ddev delete -Oy ${PROJNAME} > /dev/null 2>&1 || true
9
9
cd " ${TESTDIR} "
10
10
ddev config --project-name=${PROJNAME}
@@ -32,6 +32,7 @@ teardown() {
32
32
health_checks
33
33
}
34
34
35
+ # bats test_tags=release
35
36
@test " install from release" {
36
37
set -eu -o pipefail
37
38
cd ${TESTDIR} || ( printf " unable to cd to ${TESTDIR} \n" && exit 1 )
Original file line number Diff line number Diff line change 1
1
#ddev-generated
2
2
# Adapted from https://www.fadedbee.com/2024/01/18/installing-python2-on-debian-12-bookworm/
3
3
ARG 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 && \
12
7
dpkg -i /tmp/python2/*.deb && \
13
8
rm -rf /tmp/python2 && \
14
9
ln -s /usr/bin/python2.7 /usr/local/bin/python
You can’t perform that action at this time.
0 commit comments