Open osallou opened 5 years ago
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.
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.