Skip to content

Commit 69a6413

Browse files
authored
Merge pull request #100 from linuxserver/master-noble
2 parents 7c240a2 + 4f0c1fd commit 69a6413

File tree

20 files changed

+29
-27
lines changed

20 files changed

+29
-27
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
3+
FROM ghcr.io/linuxserver/baseimage-ubuntu:noble
44

55
# set version label
66
ARG BUILD_DATE
@@ -31,9 +31,12 @@ RUN \
3131
mv -t \
3232
/app/emby/ \
3333
/tmp/emby/opt/emby-server/* && \
34+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
3435
echo "**** cleanup ****" && \
3536
rm -rf \
36-
/tmp/*
37+
/tmp/* \
38+
/var/lib/apt/lists/* \
39+
/var/tmp/*
3740

3841
# add local files
3942
COPY root/ /

Dockerfile.aarch64

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy
3+
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-noble
44

55
# set version label
66
ARG BUILD_DATE
@@ -16,8 +16,6 @@ ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
1616

1717
RUN \
1818
echo "**** add emby deps *****" && \
19-
curl -s https://keyserver.ubuntu.com/pks/lookup?op=get\&search=0x6587ffd6536b8826e88a62547876ae518cbcf2f2 | gpg --dearmor | tee /usr/share/keyrings/raspbins.gpg >/dev/null && \
20-
echo "deb [signed-by=/usr/share/keyrings/raspbins.gpg] http://ppa.launchpad.net/ubuntu-raspi2/ppa-nightly/ubuntu focal main">> /etc/apt/sources.list.d/raspbins.list && \
2119
apt-get update && \
2220
apt-get install -y --no-install-recommends \
2321
libomxil-bellagio0 \
@@ -38,6 +36,7 @@ RUN \
3836
mv -t \
3937
/app/emby/ \
4038
/tmp/emby/opt/emby-server/* && \
39+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
4140
echo "**** cleanup ****" && \
4241
rm -rf \
4342
/tmp/* \

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ pipeline {
3434
CI_PORT='8096'
3535
CI_SSL='false'
3636
CI_DELAY='120'
37-
CI_DOCKERENV='TZ=US/Pacific'
38-
CI_AUTH='user:password'
37+
CI_DOCKERENV=''
38+
CI_AUTH=''
3939
CI_WEBPATH=''
4040
}
4141
stages {

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ services:
138138
- PGID=1000
139139
- TZ=Etc/UTC
140140
volumes:
141-
- /path/to/library:/config
141+
- /path/to/emby/library:/config
142142
- /path/to/tvshows:/data/tvshows
143143
- /path/to/movies:/data/movies
144144
- /opt/vc/lib:/opt/vc/lib #optional
@@ -164,7 +164,7 @@ docker run -d \
164164
-e TZ=Etc/UTC \
165165
-p 8096:8096 \
166166
-p 8920:8920 `#optional` \
167-
-v /path/to/library:/config \
167+
-v /path/to/emby/library:/config \
168168
-v /path/to/tvshows:/data/tvshows \
169169
-v /path/to/movies:/data/movies \
170170
-v /opt/vc/lib:/opt/vc/lib `#optional` \
@@ -359,6 +359,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
359359

360360
## Versions
361361

362+
* **13.08.24:** - Rebase to Ubuntu Noble.
362363
* **12.02.24:** - Use universal hardware acceleration blurb
363364
* **19.01.24:** - Fix tonemapping so it's done with hw acceleration.
364365
* **06.07.23:** - Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)

jenkins-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ repo_vars:
2525
- CI_PORT='8096'
2626
- CI_SSL='false'
2727
- CI_DELAY='120'
28-
- CI_DOCKERENV='TZ=US/Pacific'
29-
- CI_AUTH='user:password'
28+
- CI_DOCKERENV=''
29+
- CI_AUTH=''
3030
- CI_WEBPATH=''

readme-vars.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,13 @@ common_param_env_vars_enabled: true #PGID, PUID, etc
2020
param_container_name: "{{ project_name }}"
2121
param_usage_include_vols: true
2222
param_volumes:
23-
- {vol_path: "/config", vol_host_path: "/path/to/library", desc: "Emby data storage location. *This can grow very large, 50gb+ is likely for a large collection.*"}
23+
- {vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/library", desc: "Emby data storage location. *This can grow very large, 50gb+ is likely for a large collection.*"}
2424
- {vol_path: "/data/tvshows", vol_host_path: "/path/to/tvshows", desc: "Media goes here. Add as many as needed e.g. `/data/movies`, `/data/tv`, etc."}
2525
- {vol_path: "/data/movies", vol_host_path: "/path/to/movies", desc: "Media goes here. Add as many as needed e.g. `/data/movies`, `/data/tv`, etc."}
2626
param_usage_include_ports: true
2727
param_ports:
2828
- {external_port: "8096", internal_port: "8096", port_desc: "Http webUI."}
29-
param_usage_include_env: true
30-
param_env_vars:
31-
- {env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"}
3229
# optional container parameters
33-
opt_param_usage_include_env: false
34-
opt_param_env_vars:
3530
opt_param_usage_include_vols: true
3631
opt_param_volumes:
3732
- {vol_path: "/opt/vc/lib", vol_host_path: "/opt/vc/lib", desc: "Path for Raspberry Pi OpenMAX libs *optional*."}
@@ -80,6 +75,7 @@ app_setup_block: |
8075
readme_hwaccel: true
8176
# changelog
8277
changelogs:
78+
- {date: "13.08.24:", desc: "Rebase to Ubuntu Noble."}
8379
- {date: "12.02.24:", desc: "Use universal hardware acceleration blurb"}
8480
- {date: "19.01.24:", desc: "Fix tonemapping so it's done with hw acceleration."}
8581
- {date: "06.07.23:", desc: "Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"}

root/etc/s6-overlay/s6-rc.d/init-emby/run renamed to root/etc/s6-overlay/s6-rc.d/init-emby-config/run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
23

34
# Create folders
45
mkdir -p \
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-emby-config/run

root/etc/s6-overlay/s6-rc.d/init-emby/type

Lines changed: 0 additions & 1 deletion
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-emby/up

Lines changed: 0 additions & 1 deletion
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-video/run

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
23

34
FILES=$(find /dev/dri /dev/dvb /dev/vchiq /dev/video1? -type c -print 2>/dev/null)
45

5-
for i in $FILES
6-
do
6+
for i in ${FILES}; do
77
VIDEO_GID=$(stat -c '%g' "${i}")
88
VIDEO_UID=$(stat -c '%u' "${i}")
99
# check if user matches device
1010
if id -u abc | grep -qw "${VIDEO_UID}"; then
1111
echo "**** permissions for ${i} are good ****"
1212
else
1313
# check if group matches and that device has group rw
14-
if id -G abc | grep -qw "${VIDEO_GID}" && [ $(stat -c '%A' "${i}" | cut -b 5,6) = "rw" ]; then
14+
if id -G abc | grep -qw "${VIDEO_GID}" && [[ $(stat -c '%A' "${i}" | cut -b 5,6) == "rw" ]]; then
1515
echo "**** permissions for ${i} are good ****"
1616
# check if device needs to be added to video group
1717
elif ! id -G abc | grep -qw "${VIDEO_GID}"; then
1818
# check if video group needs to be created
1919
VIDEO_NAME=$(getent group "${VIDEO_GID}" | awk -F: '{print $1}')
20-
if [ -z "${VIDEO_NAME}" ]; then
20+
if [[ -z "${VIDEO_NAME}" ]]; then
2121
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-z0-9' | head -c4)"
2222
groupadd "${VIDEO_NAME}"
2323
groupmod -g "${VIDEO_GID}" "${VIDEO_NAME}"
@@ -27,13 +27,14 @@ do
2727
usermod -a -G "${VIDEO_NAME}" abc
2828
fi
2929
# check if device has group rw
30-
if [ $(stat -c '%A' "${i}" | cut -b 5,6) != "rw" ]; then
30+
if [[ $(stat -c '%A' "${i}" | cut -b 5,6) != "rw" ]]; then
3131
echo -e "**** The device ${i} does not have group read/write permissions, attempting to fix inside the container. ****"
3232
chmod g+rw "${i}"
3333
fi
3434
fi
3535
done
3636

37+
3738
# openmax lib loading
3839
if [ -e "/opt/vc/lib" ] && [ ! -e "/etc/ld.so.conf.d/00-vmcs.conf" ]; then
3940
echo "[emby-init] Pi Libs detected loading"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
oneshot
1+
oneshot
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/etc/s6-overlay/s6-rc.d/init-video/run
1+
/etc/s6-overlay/s6-rc.d/init-video/run

root/etc/s6-overlay/s6-rc.d/svc-emby/run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
23

34
# env settings
45
APP_DIR="/app/emby"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
longrun
1+
longrun

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-emby

Whitespace-only changes.

0 commit comments

Comments
 (0)