binder icon indicating copy to clipboard operation
binder copied to clipboard

Admin user in the docker image

Open evlist opened this issue 4 years ago • 2 comments

Please note that, unlike written in the README, there is no admin user predefined in the docker image.

It's not a big deal since its easy to create through "python manage.py createsuperuser" in a newly created container (or image) and that's more secure than providing a default admin but that could be mentioned in the README ;) ...

Thanks.

evlist avatar Apr 17 '20 07:04 evlist

against what should i run the python manage.py createsuperuser ?

mshahat avatar Mar 26 '21 18:03 mshahat

I was able to do it like this, building own image:

FROM jforman/binder:latest

RUN ["python", "manage.py", "shell", "-c", "from django.contrib.auth.models import User; User.objects.create_superuser('admin', '[email protected]', 'admin')"]

agafonovdmitry avatar Apr 04 '22 19:04 agafonovdmitry