Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

v0.2.0 #116

Merged
merged 7 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 14 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# syntax=docker/dockerfile:1.4
# artifacts: false
# platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
FROM python:2.7.18-buster AS buildstage
# in order to use ubuntu:22.04 or newer, we will need to install git from source
FROM ubuntu:22.04 AS buildstage

# build args
ARG BUILD_VERSION
Expand All @@ -12,21 +11,17 @@ ARG GITHUB_SHA=$COMMIT
# note: build_plist.py uses BUILD_VERSION and GITHUB_SHA

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# git 2.34 does not work with python 2.7
# git 2.25 may work since it is included with ubuntu 20.04
# to install git from source, see here: https://stackoverflow.com/a/52344030/11214013
# install dependencies
#RUN <<_DEPS
##!/bin/bash
#set -e
#apt-get update -y
#apt-get install -y --no-install-recommends \
# git=1:2.34.1* \
# python2=2.7.18* \
# python-pip=20.3.4*
#apt-get clean
#rm -rf /var/lib/apt/lists/*
#_DEPS
RUN <<_DEPS
#!/bin/bash
set -e
apt-get update -y
apt-get install -y --no-install-recommends \
python2=2.7.18* \
python-pip=20.3.4*
apt-get clean
rm -rf /var/lib/apt/lists/*
_DEPS

# create build dir and copy GitHub repo there
COPY --link . /build
Expand All @@ -38,7 +33,7 @@ WORKDIR /build
RUN <<_PIP
#!/bin/bash
set -e
python -m pip --no-python-version-warning --disable-pip-version-check install --no-cache-dir --upgrade \
python2 -m pip --no-python-version-warning --disable-pip-version-check install --no-cache-dir --upgrade \
pip setuptools requests
# requests required to install python-plexapi
# dev requirements not necessary for docker image, significantly speeds up build since lxml doesn't need to build
Expand All @@ -48,9 +43,9 @@ _PIP
RUN <<_BUILD
#!/bin/bash
set -e
python -m pip --no-python-version-warning --disable-pip-version-check install --no-cache-dir --upgrade \
python2 -m pip --no-python-version-warning --disable-pip-version-check install --no-cache-dir --upgrade \
--target=./Contents/Libraries/Shared -r requirements.txt --no-warn-script-location
python ./scripts/build_plist.py
python2 ./scripts/build_plist.py
_BUILD

# clean
Expand Down
2 changes: 2 additions & 0 deletions docs/source/contributing/contributing.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:github_url: https://github.com/LizardByte/Themerr-plex/tree/nightly/docs/source/contributing/contributing.rst

Contributing
============

Expand Down
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ typing==3.10.0.0
# youtube_dl is not capable or willing to create a new release so have to install from git
# youtube_dl==2021.12.17
# unknown if dependabot can update this
git+https://github.com/ytdl-org/youtube-dl.git@26035bde46c0acc30dc053618451d9aeca4b7709#egg=youtube_dl
# git+https://github.com/ytdl-org/youtube-dl.git@26035bde46c0acc30dc053618451d9aeca4b7709#egg=youtube_dl
https://github.com/ytdl-org/youtube-dl/archive/26035bde46c0acc30dc053618451d9aeca4b7709.zip#egg=youtube_dl

# custom python-plexapi supporting python 2.7
# this is used to upload theme songs since Movie agents cannot correctly do so
git+https://github.com/reenignearcher/[email protected]#egg=plexapi
# git+https://github.com/reenignearcher/[email protected]#egg=plexapi
https://github.com/reenignearcher/python-plexapi/archive/master-py2.7.zip#egg=plexapi

# websocket-client is required for plexapi alert listener
websocket-client==0.59.0;python_version<"3"