diff --git a/apps/navidrome/Dockerfile b/apps/navidrome/Dockerfile new file mode 100644 index 00000000..723675b5 --- /dev/null +++ b/apps/navidrome/Dockerfile @@ -0,0 +1,30 @@ +ARG TARGETPLATFORM +ARG VERSION +FROM ghcr.io/navidrome/navidrome:${VERSION} as source + +FROM ghcr.io/deedee-ops/alpine:3.18.5 + +ARG TARGETPLATFORM +ARG VERSION +ARG CHANNEL + +ENV ND_DATAFOLDER=/config \ + ND_LOGLEVEL=info \ + ND_MUSICFOLDER=/data \ + ND_PORT=3000 \ + ND_SCANINTERVAL=1m \ + ND_SESSIONTIMEOUT=30m \ + ND_TRANSCODINGCACHESIZE=100MB + +#hadolint ignore=DL3018 +RUN apk --no-cache add ffmpeg taglib + +COPY --from=source /app/navidrome /usr/bin/navidrome +USER 65000:65000 + +EXPOSE 3000 +VOLUME ["/config", "/tmp"] +ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/base-entrypoint.sh"] +CMD ["/usr/bin/navidrome", "--datafolder", "/config", "--musicfolder", "/data"] + +LABEL org.opencontainers.image.source="https://github.com/navidrome/navidrome/" diff --git a/apps/navidrome/ci/goss.yaml b/apps/navidrome/ci/goss.yaml new file mode 100644 index 00000000..936c4c30 --- /dev/null +++ b/apps/navidrome/ci/goss.yaml @@ -0,0 +1,31 @@ +--- +# https://github.com/goss-org/goss/blob/master/docs/manual.md#group +group: + abc: + exists: true + gid: 65000 +# https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#file +file: + /usr/bin/navidrome: + exists: true +# https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#http +http: + http://localhost:3000/ping: + status: 200 + timeout: 1000 +# https://github.com/goss-org/goss/blob/master/docs/manual.md#mount +mount: + /config: + exists: true + /tmp: + exists: true +# https://github.com/goss-org/goss/blob/master/docs/manual.md#port +port: + tcp6:3000: + listening: true +# https://github.com/goss-org/goss/blob/master/docs/manual.md#user +user: + abc: + exists: true + uid: 65000 + gid: 65000 diff --git a/apps/navidrome/metadata.json b/apps/navidrome/metadata.json new file mode 100644 index 00000000..212b3cad --- /dev/null +++ b/apps/navidrome/metadata.json @@ -0,0 +1,17 @@ +{ + "app": "navidrome", + "base": false, + "testMuteCmd": false, + "channels": [ + { + "name": "stable", + "renovate::dataSource": "docker", + "renovate::depName": "ghcr.io/navidrome/navidrome", + "version": "0.50.1", + "platforms": [ + "linux/amd64", + "linux/arm64" + ] + } + ] +} diff --git a/apps/syncthing/ci/goss.yaml b/apps/syncthing/ci/goss.yaml index 65dd3bf5..f2491a1f 100644 --- a/apps/syncthing/ci/goss.yaml +++ b/apps/syncthing/ci/goss.yaml @@ -8,7 +8,6 @@ group: file: /usr/bin/syncthing: exists: true - # https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#http http: http://localhost:8384/rest/noauth/health: