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

why admin user is created in Dockerfile? #521

Open
osallou opened this issue Aug 20, 2019 · 1 comment
Open

why admin user is created in Dockerfile? #521

osallou opened this issue Aug 20, 2019 · 1 comment

Comments

@osallou
Copy link
Contributor

osallou commented Aug 20, 2019

Dockerfile creates an admin with default password and api key.

Why creating user in Dockerfile ?

On Galaxy startup script (entrypoint), an admin user is created based on env vars GALAXY_DEFAULT_ADMIN_USER, etc.
This allows to create an admin user with custom credentials at startup.

But as user is already created in Dockerfile, we keep a user with default credentials and cannot modify it at startup.

@osallou
Copy link
Contributor Author

osallou commented Aug 20, 2019

by the way it creates a startup silent error as user already exists

sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "ix_api_keys_key"
DETAIL:  Key (key)=(admin) already exists.

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

1 participant