From 7973539287166188698b79236f0f226eaf8ff57e Mon Sep 17 00:00:00 2001 From: suika <2320837+Suika@users.noreply.github.com> Date: Tue, 13 Jul 2021 16:03:42 +0200 Subject: [PATCH] Docker: Alpine 3.14, OpenCV 4.5.2, Python 3.9 Suika/opencv-video-minimal has been updated to the latest version of opencv and python. Also updated alipine to 3.14 where more packages are available. Furthermore pyside2 is now the default qt thingy. Basically almsot no crashes should be happening due to strange Qt calls. --- static/build_files/docker/client/Dockerfile | 11 ++++++----- static/build_files/docker/client/entrypoint.sh | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/static/build_files/docker/client/Dockerfile b/static/build_files/docker/client/Dockerfile index a91a47a0..0e63fb15 100644 --- a/static/build_files/docker/client/Dockerfile +++ b/static/build_files/docker/client/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/suika/opencv-video-minimal:4.5-py3.8 +FROM ghcr.io/suika/opencv-video-minimal:4.5.2-py3.9 ARG UID ARG GID @@ -7,10 +7,11 @@ HEALTHCHECK --interval=20s --timeout=10s --retries=3 --start-period=30s CMD ! su ENTRYPOINT ["/bin/sh", "/opt/hydrus/static/build_files/docker/client/entrypoint.sh"] LABEL git="https://github.com/hydrusnetwork/hydrus" -RUN apk --no-cache add jq fvwm x11vnc xvfb supervisor py3-beautifulsoup4 py3-psutil py3-pysocks py3-requests py3-twisted py3-yaml qt5-qtcharts py3-lz4 ffmpeg py3-pillow py3-numpy py3-numpy py3-qt5 py3-openssl openssl mpv mpv-libs nodejs patch \ - && apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community font-noto font-noto-emoji \ - && apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community font-noto-cjk -RUN pip install qtpy Send2Trash html5lib twisted python-mpv cloudscrape cloudscraper pyparsing +RUN apk --no-cache add fvwm x11vnc xvfb supervisor opencv mpv mpv-libs ffmpeg jq \ + openssl nodejs patch font-noto font-noto-emoji font-noto-cjk \ + py3-pyside2 py3-beautifulsoup4 py3-pillow py3-numpy py3-openssl py3-pip \ + py3-psutil py3-pysocks py3-requests py3-twisted py3-yaml py3-lz4 py3-html5lib +RUN pip install qtpy Send2Trash python-mpv cloudscrape cloudscraper pyparsing RUN set -xe \ && mkdir -p /opt/hydrus \ diff --git a/static/build_files/docker/client/entrypoint.sh b/static/build_files/docker/client/entrypoint.sh index ebc1b7ae..d4d2c934 100644 --- a/static/build_files/docker/client/entrypoint.sh +++ b/static/build_files/docker/client/entrypoint.sh @@ -13,7 +13,7 @@ if [ -f "/opt/hydrus/static/build_files/docker/client/patch.patch" ]; then fi if [ -f "/opt/hydrus/static/build_files/docker/client/requests.patch" ]; then - cd /usr/lib/python3.8/site-packages/requests + cd /usr/lib/python3.9/site-packages/requests echo "Patching Requests" patch -f -p2 -i /opt/hydrus/static/build_files/docker/client/requests.patch cd /opt/hydrus/