Closed ebeigarts closed 8 years ago
Maybe we could instead parse args like the new logs plugin in dokku code? Thoughts, @flink?
@josegonzalez yes we could do something like this maybe: ssh dokku@domain mongo:create my_app --image mongo --version 2.6.11 --extra-args "--auth"
Can MONGO_CONFIG_OPTIONS be changed on an existing container (i.e. after mongo:create)?
@malixsys no it cannot.
Proposal for those who wish to implement this functionality:
# default create method
dokku mongo:create <service>
# specify an image
dokku mongo:create <service> --image mongo
# specify an image version
dokku mongo:create <service> --image-version 2.6.11
# specify config options
dokku mongo:create <service> --config-options " --auth "
# specify a password
dokku mongo:create <service> --password "CAMILA"
# specify a root password
dokku mongo:create <service> --root-password "FATMILA"
# specify custom environment
dokku mongo:create <service> --custom-env "USER=alpha;HOST=beta"
Other than the --config-options
flag, all the rest would be generic enough that it can be implemented for all datastore plugins. I've had other people ask about these options, and it would certainly make it easier to administrate a remote dokku instance.
Closing in favor of a rather large rfc here: dokku/dokku-redis/issues/64
This is now implemented.
I'm guessing this will not work through ssh:
Maybe we could implement something like:
I think this applies also to dokku-postgres, etc.
WDYT?