From 73bdd09e48e2498542666d8b712d79ea68efd45a Mon Sep 17 00:00:00 2001 From: thespad Date: Tue, 27 Aug 2024 14:35:18 +0100 Subject: [PATCH 1/4] Rebase to 3.20 --- Dockerfile | 14 +++++++------- Dockerfile.aarch64 | 14 +++++++------- Jenkinsfile | 4 ++-- README.md | 3 ++- jenkins-vars.yml | 4 ++-- readme-vars.yml | 6 ++---- 6 files changed, 22 insertions(+), 23 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1806095..250ece9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage +# syntax=docker/dockerfile:1 + +FROM ghcr.io/linuxserver/baseimage-alpine:3.20 AS buildstage ############## build stage ############## ARG DAAPD_RELEASE @@ -12,14 +14,12 @@ RUN \ avahi-dev \ bison \ bsd-compat-headers \ + build-base \ confuse-dev \ curl-dev \ ffmpeg-dev \ - file \ flac-dev \ flex \ - g++ \ - gcc \ gettext-dev \ gnutls-dev \ gperf \ @@ -33,7 +33,6 @@ RUN \ libtool \ libunistring-dev \ libwebsockets-dev \ - make \ mxml-dev \ openjdk8-jre-base \ protobuf-c-dev \ @@ -70,7 +69,7 @@ RUN \ mv /tmp/daapd-build/etc/owntone.conf /tmp/daapd-build/etc/owntone.conf.orig && \ rm -rf /tmp/daapd-build/var ############## runtime stage ############## -FROM ghcr.io/linuxserver/baseimage-alpine:3.19 +FROM ghcr.io/linuxserver/baseimage-alpine:3.20 # set version label ARG BUILD_DATE @@ -100,7 +99,8 @@ RUN \ sqlite-libs && \ apk add -U --update --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing \ librespot && \ - mkdir -p /music + mkdir -p /music && \ + printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version # copy buildstage and local files COPY --from=buildstage /tmp/daapd-build/ / diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 0ce8696..36b599b 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -1,4 +1,6 @@ -FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19 as buildstage +# syntax=docker/dockerfile:1 + +FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20 AS buildstage ############## build stage ############## ARG DAAPD_RELEASE @@ -12,14 +14,12 @@ RUN \ avahi-dev \ bison \ bsd-compat-headers \ + build-base \ confuse-dev \ curl-dev \ ffmpeg-dev \ - file \ flac-dev \ flex \ - g++ \ - gcc \ gettext-dev \ gnutls-dev \ gperf \ @@ -32,7 +32,6 @@ RUN \ libtool \ libunistring-dev \ libwebsockets-dev \ - make \ mxml-dev \ openjdk8-jre-base \ openssl-dev \ @@ -70,7 +69,7 @@ RUN \ mv /tmp/daapd-build/etc/owntone.conf /tmp/daapd-build/etc/owntone.conf.orig && \ rm -rf /tmp/daapd-build/var ############## runtime stage ############## -FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19 +FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20 # set version label ARG BUILD_DATE @@ -100,7 +99,8 @@ RUN \ sqlite-libs && \ apk add -U --update --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing \ librespot && \ - mkdir -p /music + mkdir -p /music && \ + printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version # copy buildstage and local files COPY --from=buildstage /tmp/daapd-build/ / diff --git a/Jenkinsfile b/Jenkinsfile index 369ff7c..f75cf2f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,8 +36,8 @@ pipeline { CI_PORT='3689' CI_SSL='false' CI_DELAY='120' - CI_DOCKERENV='TZ=US/Pacific' - CI_AUTH='user:password' + CI_DOCKERENV='' + CI_AUTH='' CI_WEBPATH='' } stages { diff --git a/README.md b/README.md index c182aa2..a94ebe6 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Find us at: [Daapd](https://owntone.github.io/owntone-server/) (iTunes) media server with support for AirPlay devices, Apple Remote (and compatibles), Chromecast, MPD and internet radio. -[![daapd](https://raw.githubusercontent.com/linuxserver/beta-templates/master/lsiodev/img/daapd-git.png)](https://owntone.github.io/owntone-server/) +[![daapd](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/daapd-icon.png)](https://owntone.github.io/owntone-server/) ## Supported Architectures @@ -289,6 +289,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **27.08.24:** - Rebase to Alpine 3.20. * **20.03.24:** - Rebase to Alpine 3.19. * **25.08.23:** - Rebase to Alpine 3.18, remove abandoned libspotify libs. * **05.07.23:** - Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf) diff --git a/jenkins-vars.yml b/jenkins-vars.yml index 547b86f..7337a07 100644 --- a/jenkins-vars.yml +++ b/jenkins-vars.yml @@ -24,6 +24,6 @@ repo_vars: - CI_PORT='3689' - CI_SSL='false' - CI_DELAY='120' - - CI_DOCKERENV='TZ=US/Pacific' - - CI_AUTH='user:password' + - CI_DOCKERENV='' + - CI_AUTH='' - CI_WEBPATH='' diff --git a/readme-vars.yml b/readme-vars.yml index 5b826d2..485f683 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -3,16 +3,13 @@ # project information project_name: daapd project_url: "https://owntone.github.io/owntone-server/" -project_logo: "https://raw.githubusercontent.com/linuxserver/beta-templates/master/lsiodev/img/daapd-git.png" +project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/daapd-icon.png" project_blurb: "[{{ project_name|capitalize }}]({{ project_url }}) (iTunes) media server with support for AirPlay devices, Apple Remote (and compatibles), Chromecast, MPD and internet radio." project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}" -project_blurb_optional_extras_enabled: false # supported architectures available_architectures: - {arch: "{{ arch_x86_64 }}", tag: "amd64-latest"} - {arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"} -# development version -development_versions: false # container parameters common_param_env_vars_enabled: true param_container_name: "{{ project_name }}" @@ -46,6 +43,7 @@ app_setup_block: | It is recommended to set the `pipe_autostart` option to `true` in your forked-daapd config. # changelog changelogs: + - {date: "27.08.24:", desc: "Rebase to Alpine 3.20."} - {date: "20.03.24:", desc: "Rebase to Alpine 3.19."} - {date: "25.08.23:", desc: "Rebase to Alpine 3.18, remove abandoned libspotify libs."} - {date: "05.07.23:", desc: "Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"} From 172131b50a1189ff9eb04c898b9bb968450fafbe Mon Sep 17 00:00:00 2001 From: thespad Date: Tue, 27 Aug 2024 15:34:18 +0100 Subject: [PATCH 2/4] Change default trusted networks to "lan" --- root/etc/s6-overlay/s6-rc.d/init-daapd-config/run | 2 ++ 1 file changed, 2 insertions(+) diff --git a/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run b/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run index 9e573dc..d0445de 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run @@ -33,6 +33,8 @@ sed -i \ -e s#/var/cache/owntone/cache.db#/config/dbase_and_logs/cache.db#g \ -e s#/var/cache/owntone/songs3.db#/config/dbase_and_logs/songs3.db#g \ -e s#/var/log/owntone.log#/config/dbase_and_logs/owntone.log#g \ + -e '/trusted_networks\ =/ s/# *//' \ + -e 's#trusted_networks = {.*#trusted_networks = { "lan" }#' /defaults/owntone.conf fi From d5ba56f1d513548305e6b272a0bde66ba13b6cde Mon Sep 17 00:00:00 2001 From: thespad Date: Tue, 27 Aug 2024 15:44:48 +0100 Subject: [PATCH 3/4] Fix missing \ --- root/etc/s6-overlay/s6-rc.d/init-daapd-config/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run b/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run index d0445de..b85f94e 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run @@ -34,7 +34,7 @@ sed -i \ -e s#/var/cache/owntone/songs3.db#/config/dbase_and_logs/songs3.db#g \ -e s#/var/log/owntone.log#/config/dbase_and_logs/owntone.log#g \ -e '/trusted_networks\ =/ s/# *//' \ - -e 's#trusted_networks = {.*#trusted_networks = { "lan" }#' + -e 's#trusted_networks = {.*#trusted_networks = { "lan" }#' \ /defaults/owntone.conf fi From 052760bd6cfb5a6c6cfb4379c828689478e4aa26 Mon Sep 17 00:00:00 2001 From: thespad Date: Tue, 27 Aug 2024 15:55:39 +0100 Subject: [PATCH 4/4] Set admin password to allow CI access to webui --- Jenkinsfile | 2 +- README.md | 2 +- jenkins-vars.yml | 2 +- readme-vars.yml | 2 +- root/etc/s6-overlay/s6-rc.d/init-daapd-config/run | 2 ++ 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f75cf2f..7707427 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,7 +37,7 @@ pipeline { CI_SSL='false' CI_DELAY='120' CI_DOCKERENV='' - CI_AUTH='' + CI_AUTH='admin:changeme' CI_WEBPATH='' } stages { diff --git a/README.md b/README.md index a94ebe6..5deab46 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ The architectures supported by this image are: Map your music folder, open up iTunes on the same LAN to see your music there. -The web interface is available at `http://:3689` +The web interface is available at `http://:3689`. The default credentials are admin/changeme. For further setup options of remotes etc, check out the daapd website, [Owntone](https://owntone.github.io/owntone-server/). diff --git a/jenkins-vars.yml b/jenkins-vars.yml index 7337a07..f775c77 100644 --- a/jenkins-vars.yml +++ b/jenkins-vars.yml @@ -25,5 +25,5 @@ repo_vars: - CI_SSL='false' - CI_DELAY='120' - CI_DOCKERENV='' - - CI_AUTH='' + - CI_AUTH='admin:changeme' - CI_WEBPATH='' diff --git a/readme-vars.yml b/readme-vars.yml index 485f683..0734115 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -26,7 +26,7 @@ app_setup_block_enabled: true app_setup_block: | Map your music folder, open up iTunes on the same LAN to see your music there. - The web interface is available at `http://:3689` + The web interface is available at `http://:3689`. The default credentials are admin/changeme. For further setup options of remotes etc, check out the daapd website, [Owntone]({{ project_url }}). diff --git a/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run b/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run index b85f94e..8412827 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-daapd-config/run @@ -35,6 +35,8 @@ sed -i \ -e s#/var/log/owntone.log#/config/dbase_and_logs/owntone.log#g \ -e '/trusted_networks\ =/ s/# *//' \ -e 's#trusted_networks = {.*#trusted_networks = { "lan" }#' \ + -e '/admin_password\ =/ s/# *//' \ + -e 's#admin_password = .*#admin_password = "changeme"#' \ /defaults/owntone.conf fi