Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environmental variables #601

Open
bszafarz opened this issue Oct 30, 2022 · 0 comments
Open

Environmental variables #601

bszafarz opened this issue Oct 30, 2022 · 0 comments
Labels
discussion Use for discussions question Further information is requested

Comments

@bszafarz
Copy link

Based on the list of Issues labels, IMO the most suitable is label:discussion

During build of my own balena-sound-pihole blend based on

I'd like to perform some customization but most problematic (and still unresolved) is the custom sound-supervisor port.

When I change port using docker-compose environment variable, it partially works as container use defined port. That also works when I've placed the environmental variable in Dockerfile. Nevertheless both of the approaches works only partially. The supervisor module starts and listen on custom port but the music does not play despite successful connection and streaming song according to spotify-connect logs.

According to my checks the SOUND_SUPPERVISOR_PORT is used only by the sound-supervisor module (that why I've used docker/docker-compose env variables with respect to sound-supervisor service) hence I don't understand why sound is not working.

Project works if I set the same variable with the same value as a balena-environmental-variable with --device scope on all services.

Is there any documentation related to the scope of variables and difference between them (different than that)? The approach of balena-env-vars is not convenient as during change of the project and/or moving device result in vars removal hence I wanted to place them within the project config to be able to deploy it with single command.

I appreciate yours feedback.

@maggie44 maggie44 added question Further information is requested discussion Use for discussions labels Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Use for discussions question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants