binder
binder copied to clipboard
Admin user in the docker image
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.
against what should i run the python manage.py createsuperuser
?
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')"]