Update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
FROM linuxserver/plex
|
FROM linuxserver/plex
|
||||||
COPY root /
|
COPY root /
|
||||||
|
|
||||||
RUN apt update && apt install -y cron
|
RUN apt update && apt install -y cron unionfs-fuse
|
||||||
|
|
||||||
ENTRYPOINT ["/init"]
|
ENTRYPOINT ["/init"]
|
||||||
|
|||||||
@@ -4,13 +4,14 @@ services:
|
|||||||
build: ./
|
build: ./
|
||||||
image: kilhaasi/pms
|
image: kilhaasi/pms
|
||||||
container_name: pms
|
container_name: pms
|
||||||
# depends_on:
|
|
||||||
# - plexdrv
|
|
||||||
volumes:
|
volumes:
|
||||||
- /Video:/Video:shared
|
- /Video:/Video:shared
|
||||||
- /Transcode:/Transcode
|
- /Transcode:/Transcode
|
||||||
- /Docker/Plex-Video/plex_cfg:/config
|
- /Docker/Plex-Video/plex_cfg:/config
|
||||||
- ./.rclone.conf:/root/.rclone.conf
|
- /Docker/Plex-Video/.rclone.conf:/root/.rclone.conf
|
||||||
|
- /Docker/Plex-Video/plexdrv-cfg:/root/.plexdrive
|
||||||
|
- /Docker/Plex-Video/enc-pwd:/root/enc-pwd
|
||||||
|
- /Docker/Plex-Video/cache:/cache
|
||||||
environment:
|
environment:
|
||||||
- TZ=DE
|
- TZ=DE
|
||||||
- BACKUP=gdrive:/Backup/Plex-Dev
|
- BACKUP=gdrive:/Backup/Plex-Dev
|
||||||
|
|||||||
19
root/etc/services.d/gocryptfs/run
Normal file
19
root/etc/services.d/gocryptfs/run
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
while [ ! -f "/mnt/G-Cache/Video/gocryptfs.conf" ]
|
||||||
|
do
|
||||||
|
echo "Waiting for gocryptfs.conf to appear..."
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
mkdir -pv /mnt/Video /crypt/output /crypt/input /Video
|
||||||
|
|
||||||
|
gocryptfs -passfile /root/enc-pwd /mnt/G-Cache/Video/ /mnt/Video
|
||||||
|
cp /mnt/G-Cache/Video/gocryptfs.conf /crypt/output
|
||||||
|
gocryptfs -passfile /root/enc-pwd /crypt/output /crypt/input
|
||||||
|
unionfs -o cow /crypt/input=RW:/mnt/Video=RO /Video
|
||||||
|
|
||||||
|
until false
|
||||||
|
do
|
||||||
|
true
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
20
root/etc/services.d/plexdrive/run
Executable file
20
root/etc/services.d/plexdrive/run
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
while [ ! -f "/root/.plexdrive/config.json" ] || [ ! -f "/root/.plexdrive/token.json" ]
|
||||||
|
do
|
||||||
|
echo "Waiting for plexdrive configuration files ..."
|
||||||
|
sleep 30
|
||||||
|
done
|
||||||
|
|
||||||
|
umask 022
|
||||||
|
|
||||||
|
IFS=" " read -r -a RUN_ARRAY <<< "$RUN_OPTS"
|
||||||
|
|
||||||
|
#mount_command="plexdrive mount -c /config/ --cache-file=/cache/cache.bolt -v 3 --umask=0777 --chunk-size=100M --uid=$PUID --gid=$PGID -o allow_other /encrypted ${RUN_ARRAY[@]}"
|
||||||
|
plexdrive mount -c /root/.plexdrive/ --cache-file=/cache/cache.bolt -v 3 --umask=0777 --chunk-size=100M -o allow_other /mnt/G-Cache ${RUN_ARRAY[@]}
|
||||||
|
|
||||||
|
#echo "Executing => $mount_command"
|
||||||
|
#mkdir /encrypted /decrypted
|
||||||
|
#chmod 777 /encrypted /decrypted
|
||||||
|
#exec \
|
||||||
|
s6-setuidgid abc $mount_command
|
||||||
BIN
root/usr/bin/gocryptfs
Executable file
BIN
root/usr/bin/gocryptfs
Executable file
Binary file not shown.
BIN
root/usr/bin/plexdrive
Executable file
BIN
root/usr/bin/plexdrive
Executable file
Binary file not shown.
Reference in New Issue
Block a user