Skip to content

Commit

Permalink
Merge pull request #7 from linuxserver/alpine320-tests
Browse files Browse the repository at this point in the history
ignore test failures like pre 3.13
  • Loading branch information
aptalca authored Oct 9, 2024
2 parents 60a4058 + 1fb113d commit 8a2afa3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.20 as buildstage

# set version label
ARG PYTHON_VERSION=3.12.4
ARG PYTHON_VERSION

ENV MAKEFLAGS="-j4"

Expand Down Expand Up @@ -40,6 +40,9 @@ RUN \
xz-dev \
zlib-dev && \
echo "**** compile python ****" && \
if [ -z "${PYTHON_VERSION}" ]; then \
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); \
fi && \
mkdir -p \
/tmp/python \
/pythoncompiled && \
Expand All @@ -53,6 +56,7 @@ RUN \
patch -d /tmp/python -p 1 < "${patch}"; \
done && \
cd /tmp/python && \
sed -i -E 's|\$\(LLVM_PROF_FILE\) \$\(RUNSHARED\) \./\$\(BUILDPYTHON\) \$\(PROFILE_TASK\)$|$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) \|\| true|g' Makefile.pre.in && \
./configure \
--build="x86_64-linux-musl" \
--enable-loadable-sqlite-extensions \
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20 as buildstage

# set version label
ARG PYTHON_VERSION=3.12.4
ARG PYTHON_VERSION

ENV MAKEFLAGS="-j4"

Expand Down Expand Up @@ -40,6 +40,9 @@ RUN \
xz-dev \
zlib-dev && \
echo "**** compile python ****" && \
if [ -z "${PYTHON_VERSION}" ]; then \
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); \
fi && \
mkdir -p \
/tmp/python \
/pythoncompiled && \
Expand All @@ -53,6 +56,7 @@ RUN \
patch -d /tmp/python -p 1 < "${patch}"; \
done && \
cd /tmp/python && \
sed -i -E 's|\$\(LLVM_PROF_FILE\) \$\(RUNSHARED\) \./\$\(BUILDPYTHON\) \$\(PROFILE_TASK\)$|$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) \|\| true|g' Makefile.pre.in && \
./configure \
--build="x86_64-linux-musl" \
--enable-loadable-sqlite-extensions \
Expand Down

0 comments on commit 8a2afa3

Please sign in to comment.