linuxserver / docker-plex

GNU General Public License v3.0
1.19k stars 210 forks source link

[BUG] About "deprecate armhf" message #380

Closed glensc closed 1 year ago

glensc commented 1 year ago

Is there an existing issue for this?

Current Behavior

You say you have deprecated armhf (As announced here),. but seems you really have REMOVED armhf support.

Typically deprecated means you can still use it. Perhaps correct the wording?

Expected Behavior

No response

Steps To Reproduce

$ docker pull linuxserver/plex
Using default tag: latest
latest: Pulling from linuxserver/plex
no matching manifest for linux/arm/v7 in the manifest list entries

Environment

- OS: Raspbian GNU/Linux 10 (buster)
- How docker service was installed:

CPU architecture

armv7l

Docker creation

Container logs

github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

j0nnymoe commented 1 year ago

You can still use older builds though we suggest you don't.

glensc commented 1 year ago

I guess plex itself still provides builds for arm arch, so could build docker image locally?

j0nnymoe commented 1 year ago

Sure if you wanted to, but our armhf baseimages are no longer supported/maintained so any bugs won't be fixed.

glensc commented 1 year ago

seems PMS itself doesn't provide package anymore?

image
j0nnymoe commented 1 year ago

Armv7 is armhf.

glensc commented 1 year ago

So I've come up with something like this:

  1. take latest linux-server/plexmediaserver armhf docker image
  2. find latest. plexmediaserver package
  3. install it to docker image, f.e.: docker build . --progress=plain -t plex:1.32.6.7557-1cf77d501
  4. tag it locally and use that image

WARNING: Some jq and bash-foo to download if missing

Dockerfile ```dockerfile # Since armhf images are no longer published: # - https://github.com/linuxserver/docker-plex/issues/380 # # But want to receive PMS updates: # 1. take latest linux-server/plexmediaserver armhf docker image # 2. find latest plexmediaserver package # 3. install it to docker image # 4. tag it locally and use that image # # Author: Elan Ruusamäe # syntax=docker/dockerfile:1 # Last armhf image published FROM linuxserver/plex:1.32.4.7195-7c8f9d3b6-ls174 AS plex-base FROM alpine AS download RUN apk add curl jq WORKDIR /tmp ENV \ PLEX_DISTRO="debian" \ PLEX_BUILD="linux-armv7neon" \ PLEX_DOWNLOADS="https://plex.tv/api/downloads/5.json" RUN \ --mount=type=cache,id=plex-cache,target=/usr/src \ < release.json < downloads.json url=$(jq -r '.url' < release.json) checksum=$(jq -r '.checksum' < release.json) filename=$(basename "$url") filepath="/usr/src/$filename" if [ ! -f "$filepath" ]; then curl -sSf -L "$url" -o "$filepath.tmp" echo "$checksum $filepath.tmp" | sha1sum -c mv "$filepath.tmp" "$filepath" fi cd /usr/src ls -l echo "$filename" > plexmediaserver-latest eot FROM plex-base RUN \ --mount=type=cache,id=apt,target=/var/cache/apt \ --mount=type=cache,id=apt-lists,target=/var/lib/apt/lists \ --mount=type=cache,id=plex-cache,target=/usr/src \ <
root@ba32a4bac86c:/# apt info plexmediaserver
Package: plexmediaserver
Version: 1.32.6.7557-1cf77d501
Status: install ok installed
Priority: optional
Section: video
Maintainer: Plex Inc <noreply@plex.tv>
Installed-Size: 160 MB
Homepage: https://plex.tv
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Plex organizes all of your personal media so you can easily access and enjoy it.
j0nnymoe commented 1 year ago

You could just run the last latest image of our Plex container that works on armhf and just set the Version ENV to latest and providing you have plexpass connected, updates will get installed on container restart.

glensc commented 1 year ago

@j0nnymoe speaks of this script (thanks!):

I prefer pre-built docker image, so re-creation wouldn't have to download and install. possibly faster startup, but definitely more predictable outcome.

thespad commented 1 year ago

Just be aware that at some point it's going to break because Plex will expect dependencies that don't exist in the armhf image, or are too out of date to be supported.