Add Plex Media Server test 10

This commit is contained in:
Daniel Doubet
2022-10-28 09:44:51 -05:00
parent 1bd4641ae4
commit 2511dd247b
6 changed files with 28 additions and 10 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ Docker compose for my Raspberry Pi 3B running balena os x64
I forgot the password to my old HA instance, so I bought a nice, new, and shiny 128GB Samsung A2 card and used [balenaEtcher](https://www.balena.io/etcher/) to write the balena os to it. I then spent two days finding the right combination to get both [balena-homeassistant](https://github.com/balenalabs-incubator/balena-homeassistant) and [balena-rpiplay](https://github.com/rahul-thakoor/balena-rpiplay) working in tandem.
## Changelog
### Version 1.4.8
### Version 1.4.10
- 2022-10-27: Attempt to add Plex
### Version 1.3.0
- 2022-10-27: Removed RPIPlay
+1 -1
View File
@@ -1 +1 @@
1.4.8
1.4.10
+1 -1
View File
@@ -28,4 +28,4 @@ data:
- PLEX_CLAIM_TOKEN: ""
- PLEX_ADVERTISE_IP: ""
- PLEX_TZ: "America/Chicago"
version: 1.4.8
version: 1.4.10
+3 -7
View File
@@ -43,7 +43,7 @@ services:
- homeassistant
plex:
build:
context: plex
context: plex2
network_mode: host
ports:
- '80:32400'
@@ -63,9 +63,5 @@ services:
- plex:/transcode
restart: always
environment:
TZ: America/Chicago
ADVERTISE_IP:
PLEX_CLAIM:
- PUID=0
- PGID=0
- VERSION=docker
PUID: 911
PGID: 911
+9
View File
@@ -0,0 +1,9 @@
FROM linuxserver/plex:arm64v8-latest
COPY mount.sh /
RUN chmod a+x /mount.sh
ENTRYPOINT [ "/bin/sh" ]
CMD [ "-c", "/mount.sh && /init" ]
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
PUID=${PUID:-911}
PGID=${PGID:-911}
for uuid in $(blkid -sUUID -ovalue /dev/sd??)
do
mkdir -v /media/"${uuid}" 2>/dev/null
mount -v UUID="${uuid}" /media/"${uuid}" || exit 1
chown -v "${PUID}:${PGID}" /media/"${uuid}"
done
exit 0