hamishfagg / dockerfiles

42 stars 31 forks source link

Pass args to Mopidy Entrypoint #14

Closed kferrone closed 3 years ago

kferrone commented 3 years ago

Unless I completely override the entrypoint in the Mopidy Dockerfile, I can't pass any more args to the mopidy command.

For example in a k8s pod:

args: 
- -o 
- spotify/username=$(SPOTIFY_USERNAME)
- -o 
- spotify/password=$(SPOTIFY_PASSWORD)

I propose to simply add "$@" to the end of the entrypoint like so:

exec mopidy --config /mopidy/mopidy.conf "$@"

This way the rest of the entrypoint script can do it's thing and I can pass in my blend of args to Mopidy.