-
Notifications
You must be signed in to change notification settings - Fork 49
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
Consider dropping most environment variables #555
Comments
I'm not opposed to this, more just curious about which ones are annoying you? Mine are set once and then I never really think about them. Is the question prompted by work on the installation script or something else? Also, I know we had the conversation somewhere else earlier, can't seem to find. I think we only really use I've recently added a Probably don't need Pretty sure we don't use |
I was reviewing @AnthonyHorton's change which adds a pyro config file, and that includes a path starting with /var/pantoptes. It seems to me that we should try to avoid duplicating the paths. So, I'd like to either extend our YAML support with the ability to evaluate env vars, or reduce the use of the env vars... or both if there are some that really aren't needed. |
Perhaps we should have a config file in PANDIR with the mapping from names to paths? Then those are available to all the compatible apps we write that we usually place in /var/panoptes/. |
A mapping for directories specifically? Might be a good idea to pull that out of pocs.yaml and put directly in $PANDIR. |
I'm supportive of the idea of removing the dependence on environment variables, and instead putting the items we really need in the config files and inferring the rest. On general principles keeping all the important configuration in the FWIW the setting of Having In terms of what to include |
@AnthonyHorton I agree that the problem predated your change; my goal is simply to get agreement on the fact that there is an issue and then agreement on what we can do about it. And I quite like the idea of a script that can generate the envvar settings for you. So, at the limit we could have no env vars required, with /var/panoptes being assumed if PANDIR is not specified. And if folks want POCS, astrometry, PIAA, etc. elsewhere, they can add symlinks into the PANDIR. Can you remind me what we use PANUSER for? |
Huntsman runs everything as a different user under I've started stripping a few env variables in the PRs I am working on. I've added #564 with some other config related items I've been thinking about. Please add anything to that overview issue. |
The PANDIR=/var/panoptes
POCS=/var/panoptes/POCS
PANLOG=/var/panoptes/logs Additionally, for those running the docker services there should be a:
(This may disappear in future but is necessary now. Also technically it should be the output from If accessing GCP services then there should also be a: GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json The This means that there must be a one-time manual configuration of the I'm not sure there is much utility in keeping this broad issue open. As part of my issue cleanup I'm closing this. Can be reopened if needed. |
We have PANDIR, POCS, etc. And then we have config files that have the values of those envvars. It seems like we should have as few envvars as possible, and infer them where possible, or record them in config files where not.
@wtgee and @AnthonyHorton, your thoughts please.
The text was updated successfully, but these errors were encountered: