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

Feature Request: Dump useful info upon startup to stdout; read in command line parameters via environmental variables #35

Open
ariana-wolfkiel opened this issue Feb 10, 2022 · 2 comments

Comments

@ariana-wolfkiel
Copy link

Features for Docker environments that don't allow changes to the execution command

Synology (and others?) doesn't let you change the execution command once the container is created. The only way to change the execution command is to delete the container and create a new one.

So, upon boot up, write useful stuff to stdout so that we can leave the execution command alone. Useful info that could be dumped:
--version
--check-login

Other command line parameters could be read in as environmental variables, like:
--auto-update <yes|no>
--features
--start-date
--days
--verbose
Or do it with a single environmental variable. Something like: COMMAND_LINE_PARAMETERS

@ariana-wolfkiel
Copy link
Author

I discovered that exporting the .json file modifying it with updated command line parameters and then importing again was easier than I thought. So, this isn't a much of a priority. Doing it this way does recreate the container but there is nothing that is stored. Everything is read in via environmental variables.

@Spazholio
Copy link

@ariana-wolfkiel Would you mind sharing how you were able to get command-line parameters to be used via environment variables? Looking to add "start-date" and "auto-update" because I'm using docker-compose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants