Skip to content

Commit

Permalink
Merge pull request #16 from linuxserver/playwright
Browse files Browse the repository at this point in the history
Build playwright from source, add libjpeg
  • Loading branch information
thespad authored Mar 8, 2024
2 parents 92e3099 + c7cdbf7 commit 716037b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ RUN \
apk add --update --no-cache --virtual=build-dependencies \
build-base \
cargo \
git \
jpeg-dev \
libc-dev \
libffi-dev \
libxslt-dev \
openssl-dev \
python3-dev \
zlib-dev && \
apk add --update --no-cache \
libjpeg \
libxslt \
poppler-utils \
python3 && \
Expand All @@ -42,6 +45,11 @@ RUN \
pip \
wheel && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.19/ -r /app/changedetection/requirements.txt && \
PLAYWRIGHT_RELEASE=$(curl -sX GET "https://api.github.com/repos/microsoft/playwright-python/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
git clone --depth 1 --branch "${PLAYWRIGHT_RELEASE}" https://github.com/microsoft/playwright-python /tmp/playwright-python && \
cd /tmp/playwright-python && \
pip install -U --no-cache-dir . && \
apk del --purge \
build-dependencies && \
rm -rf \
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ RUN \
apk add --update --no-cache --virtual=build-dependencies \
build-base \
cargo \
git \
jpeg-dev \
libc-dev \
libffi-dev \
libxslt-dev \
openssl-dev \
python3-dev \
zlib-dev && \
apk add --update --no-cache \
libjpeg \
libxslt \
poppler-utils \
python3 && \
Expand All @@ -42,6 +45,11 @@ RUN \
pip \
wheel && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.19/ -r /app/changedetection/requirements.txt && \
PLAYWRIGHT_RELEASE=$(curl -sX GET "https://api.github.com/repos/microsoft/playwright-python/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
git clone --depth 1 --branch "${PLAYWRIGHT_RELEASE}" https://github.com/microsoft/playwright-python /tmp/playwright-python && \
cd /tmp/playwright-python && \
pip install -U --no-cache-dir . && \
apk del --purge \
build-dependencies && \
rm -rf \
Expand Down
3 changes: 2 additions & 1 deletion readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ app_setup_block_enabled: true
app_setup_block: |
Webui is accessible at http://SERVERIP:PORT
Please note that this image does not contain the [Playwright content fetcher](https://github.com/dgtlmoon/changedetection.io/wiki/Playwright-content-fetcher#docker-compose-based) due to a lack of support for muslc-based systems. If you require this feature please use [Selenium](https://github.com/linuxserver/docker-changedetection.io/issues/3#issuecomment-1250251715) or the [official container](https://github.com/dgtlmoon/changedetection.io#docker)
Please note that as of version 0.45.15 this image contains the [Playwright content fetcher](https://github.com/dgtlmoon/changedetection.io/wiki/Playwright-content-fetcher#docker-compose-based).
For more info read [the wiki](https://github.com/dgtlmoon/changedetection.io/wiki).
# changelog
changelogs:
- { date: "08.03.24:", desc: "Build Playwright from source, add libjpeg."}
- { date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
- { date: "10.08.23:", desc: "Add poppler-utils for pdf conversion tools." }
- { date: "11.06.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
Expand Down

0 comments on commit 716037b

Please sign in to comment.