bgruening / docker-galaxy

:whale::bar_chart::books: Docker Images tracking the stable Galaxy releases.
http://bgruening.github.io/docker-galaxy
MIT License
226 stars 134 forks source link

why admin user is created in Dockerfile? #521

Open osallou opened 5 years ago

osallou commented 5 years ago

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 commented 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.