mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-24 21:43:07 +00:00
[4] Add lxml
Docker Version using an old lxml version that supports more cpus
This commit is contained in:
parent
98f2decaa8
commit
174671299c
6 changed files with 67 additions and 1 deletions
14
.github/workflows/develop.yml
vendored
14
.github/workflows/develop.yml
vendored
|
@ -46,6 +46,20 @@ jobs:
|
|||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./
|
||||
file: ./Dockerfile.lxml
|
||||
build-args: |
|
||||
"BRANCH_NAME=develop"
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:lxml
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Send Discord Commit Notification
|
||||
uses: meisnate12/discord-notifications@master
|
||||
with:
|
||||
|
|
12
.github/workflows/latest.yml
vendored
12
.github/workflows/latest.yml
vendored
|
@ -40,6 +40,18 @@ jobs:
|
|||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./
|
||||
file: ./Dockerfile.lxml
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:lxml
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Discord Success Notification
|
||||
uses: meisnate12/discord-notifications@master
|
||||
if: success()
|
||||
|
|
14
.github/workflows/nightly.yml
vendored
14
.github/workflows/nightly.yml
vendored
|
@ -46,6 +46,20 @@ jobs:
|
|||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./
|
||||
file: ./Dockerfile.lxml
|
||||
build-args: |
|
||||
"BRANCH_NAME=nightly"
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:lxml
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Send Discord Commit Notification
|
||||
uses: meisnate12/discord-notifications@master
|
||||
with:
|
||||
|
|
|
@ -5,6 +5,7 @@ Updated gitpython requirement to 3.1.43
|
|||
|
||||
# New Features
|
||||
Add Page Topics Options to `imdb_search`
|
||||
Add `lxml` Docker Version using an old lxml version that supports more cpus
|
||||
|
||||
# Updates
|
||||
|
||||
|
|
25
Dockerfile.lxml
Normal file
25
Dockerfile.lxml
Normal file
|
@ -0,0 +1,25 @@
|
|||
FROM python:3.11-slim-buster
|
||||
ARG BRANCH_NAME=master
|
||||
ENV BRANCH_NAME ${BRANCH_NAME}
|
||||
ENV TINI_VERSION v0.19.0
|
||||
ENV PMM_DOCKER True
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN echo "**** install system packages ****" \
|
||||
&& apt-get update \
|
||||
&& apt-get upgrade -y --no-install-recommends \
|
||||
&& apt-get install -y tzdata --no-install-recommends \
|
||||
&& apt-get install -y gcc g++ libxml2-dev libxslt-dev libz-dev libjpeg62-turbo-dev zlib1g-dev wget curl \
|
||||
&& wget -O /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-"$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& chmod +x /tini \
|
||||
&& sed -i "s|lxml==5.2.1|lxml==5.1.1|g" /requirements.txt
|
||||
&& pip3 install --no-cache-dir --upgrade --requirement /requirements.txt \
|
||||
&& apt-get --purge autoremove gcc g++ libxml2-dev libxslt-dev libz-dev -y \
|
||||
&& apt-get clean \
|
||||
&& apt-get update \
|
||||
&& apt-get check \
|
||||
&& apt-get -f install \
|
||||
&& apt-get autoclean \
|
||||
&& rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/*
|
||||
COPY . /
|
||||
VOLUME /config
|
||||
ENTRYPOINT ["/tini", "-s", "python3", "plex_meta_manager.py", "--"]
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.21.0-develop3
|
||||
1.21.0-develop4
|
||||
|
|
Loading…
Reference in a new issue