Skip to content

Commit 34e99a6

Browse files
authored
Merge pull request #8 from linuxserver/alpine319-tests
alpine319: ignore test failures like pre 3.13
2 parents 17962f8 + df3485f commit 34e99a6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage
44

55
# set version label
6-
ARG PYTHON_VERSION=3.12.2
6+
ARG PYTHON_VERSION
77

88
ENV MAKEFLAGS="-j4"
99

@@ -40,6 +40,9 @@ RUN \
4040
xz-dev \
4141
zlib-dev && \
4242
echo "**** compile python ****" && \
43+
if [ -z "${PYTHON_VERSION}" ]; then \
44+
PYTHON_VERSION=$(curl -sX GET https://api.github.com/repos/python/cpython/tags | jq -r '.[] | select(.name | contains("rc") or contains("a") or contains("b") | not) | .name' | sed 's|^v||g' | sort -rV | head -1); \
45+
fi && \
4346
mkdir -p \
4447
/tmp/python \
4548
/pythoncompiled && \
@@ -53,6 +56,7 @@ RUN \
5356
patch -d /tmp/python -p 1 < "${patch}"; \
5457
done && \
5558
cd /tmp/python && \
59+
sed -i -E 's|\$\(LLVM_PROF_FILE\) \$\(RUNSHARED\) \./\$\(BUILDPYTHON\) \$\(PROFILE_TASK\)$|$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) \|\| true|g' Makefile.pre.in && \
5660
./configure \
5761
--build="x86_64-linux-musl" \
5862
--enable-loadable-sqlite-extensions \

Dockerfile.aarch64

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19 as buildstage
44

55
# set version label
6-
ARG PYTHON_VERSION=3.12.2
6+
ARG PYTHON_VERSION
77

88
ENV MAKEFLAGS="-j4"
99

@@ -40,6 +40,9 @@ RUN \
4040
xz-dev \
4141
zlib-dev && \
4242
echo "**** compile python ****" && \
43+
if [ -z "${PYTHON_VERSION}" ]; then \
44+
PYTHON_VERSION=$(curl -sX GET https://api.github.com/repos/python/cpython/tags | jq -r '.[] | select(.name | contains("rc") or contains("a") or contains("b") | not) | .name' | sed 's|^v||g' | sort -rV | head -1); \
45+
fi && \
4346
mkdir -p \
4447
/tmp/python \
4548
/pythoncompiled && \
@@ -53,6 +56,7 @@ RUN \
5356
patch -d /tmp/python -p 1 < "${patch}"; \
5457
done && \
5558
cd /tmp/python && \
59+
sed -i -E 's|\$\(LLVM_PROF_FILE\) \$\(RUNSHARED\) \./\$\(BUILDPYTHON\) \$\(PROFILE_TASK\)$|$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) \|\| true|g' Makefile.pre.in && \
5660
./configure \
5761
--build="x86_64-linux-musl" \
5862
--enable-loadable-sqlite-extensions \

0 commit comments

Comments
 (0)