Merge pull request #24 from linuxserver/deps-again

Temp build fix
This commit is contained in:
Adam 2025-02-03 10:22:25 +00:00 committed by GitHub
commit 30eea04d07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 28 additions and 38 deletions

View File

@ -6,6 +6,8 @@ FROM ghcr.io/by275/libtorrent:2-alpine3.19 AS libtorrent
FROM ghcr.io/linuxserver/baseimage-alpine:3.19
COPY --from=ghcr.io/astral-sh/uv:0.5.26 /uv /uvx /bin/
# set version label
ARG BUILD_DATE
ARG VERSION
@ -16,7 +18,10 @@ LABEL maintainer="thespad"
# environment settings
ENV HOME="/config" \
PYTHONIOENCODING=utf-8 \
TMPDIR=/run/flexget-temp
TMPDIR=/run/flexget-temp \
UV_PROJECT_ENVIRONMENT=/lsiopy \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy
RUN \
echo "**** install packages ****" && \
@ -36,28 +41,18 @@ RUN \
FLEXGET_VERSION=$(curl -s https://api.github.com/repos/flexget/flexget/releases/latest \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p /tmp/flexget && \
mkdir -p /data && \
mkdir -p /run/flexget-temp /data && \
mkdir -p /app/flexget && \
curl -o \
/tmp/flexget.tar.gz -L \
"https://github.com/Flexget/Flexget/archive/refs/tags/${FLEXGET_VERSION}.tar.gz" && \
tar xf \
/tmp/flexget.tar.gz -C \
/tmp/flexget --strip-components=1 && \
cd /tmp/flexget && \
python3 -m venv /lsiopy && \
pip install -U --no-cache-dir \
pip \
wheel && \
pip install -U --no-cache --find-links https://wheel-index.linuxserver.io/alpine-3.19/ \
click \
flexget==${FLEXGET_VERSION#v} \
requests \
-r requirements.txt \
-r ./requirements/deluge.txt \
-r ./requirements/qbittorrent.txt \
-r ./requirements/telegram.txt \
-r ./requirements/transmission.txt && \
/app/flexget --strip-components=1 && \
cd /app/flexget && \
uv venv /lsiopy && \
uv run bundle_webui.py && \
uv sync --frozen --no-dev --no-cache --group=all && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apk del --purge \

View File

@ -6,6 +6,8 @@ FROM ghcr.io/by275/libtorrent:2-alpine3.19 AS libtorrent
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19
COPY --from=ghcr.io/astral-sh/uv:0.5.26 /uv /uvx /bin/
# set version label
ARG BUILD_DATE
ARG VERSION
@ -16,7 +18,10 @@ LABEL maintainer="thespad"
# environment settings
ENV HOME="/config" \
PYTHONIOENCODING=utf-8 \
TMPDIR=/run/flexget-temp
TMPDIR=/run/flexget-temp \
UV_PROJECT_ENVIRONMENT=/lsiopy \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy
RUN \
echo "**** install packages ****" && \
@ -36,28 +41,18 @@ RUN \
FLEXGET_VERSION=$(curl -s https://api.github.com/repos/flexget/flexget/releases/latest \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p /tmp/flexget && \
mkdir -p /data && \
mkdir -p /run/flexget-temp /data && \
mkdir -p /app/flexget && \
curl -o \
/tmp/flexget.tar.gz -L \
"https://github.com/Flexget/Flexget/archive/refs/tags/${FLEXGET_VERSION}.tar.gz" && \
tar xf \
/tmp/flexget.tar.gz -C \
/tmp/flexget --strip-components=1 && \
cd /tmp/flexget && \
python3 -m venv /lsiopy && \
pip install -U --no-cache-dir \
pip \
wheel && \
pip install -U --no-cache --find-links https://wheel-index.linuxserver.io/alpine-3.19/ \
click \
flexget==${FLEXGET_VERSION#v} \
requests \
-r requirements.txt \
-r ./requirements/deluge.txt \
-r ./requirements/qbittorrent.txt \
-r ./requirements/telegram.txt \
-r ./requirements/transmission.txt && \
/app/flexget --strip-components=1 && \
cd /app/flexget && \
uv venv /lsiopy && \
uv run bundle_webui.py && \
uv sync --frozen --no-dev --no-cache --group=all && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apk del --purge \

2
Jenkinsfile vendored
View File

@ -36,7 +36,7 @@ pipeline {
CI_PORT='5050'
CI_SSL='false'
CI_DELAY='120'
CI_DOCKERENV=''
CI_DOCKERENV='TZ=Europe/London'
CI_AUTH=''
CI_WEBPATH=''
}

View File

@ -24,7 +24,7 @@ repo_vars:
- CI_PORT='5050'
- CI_SSL='false'
- CI_DELAY='120'
- CI_DOCKERENV=''
- CI_DOCKERENV='TZ=Europe/London'
- CI_AUTH=''
- CI_WEBPATH=''
sponsor_links: