From 63c14487f3196c6ce782e6d6b4bcf9f1f55ac794 Mon Sep 17 00:00:00 2001 From: MrTyton Date: Fri, 25 Mar 2022 23:41:39 -0400 Subject: [PATCH] Revert "diffferent method of installing calibre" This reverts commit 33bb732a74fef73639d498e58ac27bba34716e13. --- Dockerfile | 19 ++++++++++++++++--- release-versions/latest.txt | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c00de2a..e93794e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ LABEL build_version="FFDL-Auto version:- ${VERSION} Calibre: ${CALIBRE_RELEASE} ENV PUID="911" \ PGID="911" - CALIBRE_INSTALLER_SOURCE_CODE_URL https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py + RUN set -x && \ apk update && \ apk add --no-cache --upgrade \ @@ -38,8 +38,21 @@ RUN set -x && \ abc RUN echo "**** install calibre ****" && \ - wget -O- ${CALIBRE_INSTALLER_SOURCE_CODE_URL} | python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main(install_dir='/opt', isolated=True)" && \ - rm -rf /tmp/calibre-installer-cache + set -x && \ + mkdir -p \ + /opt/calibre && \ + if [ -z ${CALIBRE_RELEASE+x} ]; then \ + CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \ + | jq -r .tag_name); \ + fi && \ + CALIBRE_VERSION="$(echo ${CALIBRE_RELEASE} | cut -c2-)" && \ + CALIBRE_URL="https://download.calibre-ebook.com/${CALIBRE_VERSION}/calibre-${CALIBRE_VERSION}-x86_64.txz" && \ + curl -o \ + /tmp/calibre-tarball.txz -L \ + "$CALIBRE_URL" && \ + tar xvf /tmp/calibre-tarball.txz -C \ + /opt/calibre && \ + dbus-uuidgen > /etc/machine-id RUN echo "**** cleanup ****" && \ rm -rf \ diff --git a/release-versions/latest.txt b/release-versions/latest.txt index 7b73b2e..993de2a 100644 --- a/release-versions/latest.txt +++ b/release-versions/latest.txt @@ -1 +1 @@ -2022.03.25-29 +2022.03.25-25