greyltc / docker-owncloud

Arch linux based docker container with owncloud
111 stars 37 forks source link

Automatic setting of username + password #43

Closed zopyx closed 8 years ago

zopyx commented 9 years ago

Is there a way to set a username + password automatically as part of running the Docker image? Usecase is that we need a Docker installation with a pre-defined username/password for integration purposes. We don't want to emulate the setting of the initial account data using screen scrapping or so. Is this possible?

l3iggs commented 9 years ago

Hm. I think it should be. I'm not exactly sure where username and password are stored. It would either be in the database (in whatever type of database you format you choose during setup) or in config.php

Have a look at owncloud's documentation for config.php: https://doc.owncloud.org/server/8.2/admin_manual/configuration_server/config_sample_php_parameters.html Maybe you can pre-set some variable(s) there to get what you need there. If not, you may need to include a previously created database in your image with he user and password already in there.

l3iggs commented 8 years ago

@zopyx any progress with this?

greyltc commented 8 years ago

Interest in this feature seems to waned. I don't think I'll spend any effort to try to implement this. I'm happy to accept a PR for it or repoen it if I see some more interest.