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

Instructions on env vars setup needed. #952

Closed
wtgee opened this issue Feb 16, 2020 · 0 comments · Fixed by #951
Closed

Instructions on env vars setup needed. #952

wtgee opened this issue Feb 16, 2020 · 0 comments · Fixed by #951
Labels
config Items related to configuration or the config file. Documentation
Milestone

Comments

@wtgee
Copy link
Member

wtgee commented Feb 16, 2020

The docker branch (soon to be merged into develop via #951) assumes there is an environment file in $PANDIR/.env (can be read via dotenv). This environment file currently consists of the following:

PANDIR=/var/panoptes
POCS=/var/panoptes/POCS
PANLOG=/var/panoptes/logs

Additionally, for those running the docker services there should be a:

LOCAL_USER_ID=1000

(This may disappear in future but is necessary now. Also technically it should be the output from id -u not just 1000).

If accessing GCP services then there should also be a:

GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json

The .env file helps start up the config server and everything else should be queried via the config server and not rely on env vars.

This means that there must be a one-time manual configuration of the .env file (i.e. it can't be completely self-discoverable).

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.

Originally posted by @wtgee in #555 (comment)

@wtgee wtgee added config Items related to configuration or the config file. Documentation labels Feb 16, 2020
@wtgee wtgee added this to the v0.8.0 milestone Feb 16, 2020
@wtgee wtgee mentioned this issue May 30, 2020
2 tasks
@wtgee wtgee closed this as completed in #951 Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Items related to configuration or the config file. Documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant