Skip to content

Commit

Permalink
feat: add navidrome
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Dec 2, 2023
1 parent ac1642b commit 4f77dcb
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 1 deletion.
30 changes: 30 additions & 0 deletions apps/navidrome/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/"
31 changes: 31 additions & 0 deletions apps/navidrome/ci/goss.yaml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions apps/navidrome/metadata.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
}
1 change: 0 additions & 1 deletion apps/syncthing/ci/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4f77dcb

Please sign in to comment.