-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Flags for customizing service creation and links #64
Comments
Useful stackoverflow comment on argparsing. Repost follows: As other people explained, getopts doesn't parse long options. You can use getopt, but it's not portable (and it is broken on some platform...) As a workaround, you can implement a shell loop. Here an example that transforms long options to short ones before using the standard getopts command (it's simpler in my opinion):
|
Is there an ETA for the "Single Container"-Feature? |
Whenever I get to it. Dokku doesn't pay the bills, so if you want to help change that, let me know and I can get you an ETA. |
@josegonzalez I am interested in the "Single Container" feature, how can I help with this issue? |
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs #64
… when calling link subcommand. Refs dokku/dokku-redis#64
… when calling link subcommand. Refs dokku/dokku-redis#64
🎉 🎉 🎉 |
Could postgresql container memory limit get included in that list ? |
Rather than have a bunch of semi-related issues open, I'll open a single issue to track the various flags we want to add:
Creation Flags
We currently allow some values to be configured via environment variables. This doesn't work as well when users are running commands over ssh. We should instead allow users to specify any of these initial values during the creation step.
service:create
: Add the ability to specify a flag--config-options "OPTS"
to define any extra options.service:create
: Add the ability to specify a flag--custom-env "USER=alpha;HOST=beta"
to define the custom env.service:create
: Add the ability to specify a flag--image IMAGE
to define the image name.service:create
: Add the ability to specify a flag--image-version IMAGE_VERSION
to define the image version.service:create
: Add the ability to specify a flag--password PASSWORD
to define the password.service:create
: Add the ability to specify a flag--root-password PASSWORD
to define the root password.Clone Flags
dokku postgres:clone
ignoresPOSTGRES_IMAGE_VERSION
#105Upgrading/Downgrading is now impossible since dokku/dokku-postgres@6a86efc, and we should allow folks to easily override the environment variables via flags.
service:clone
: Add the ability to specify a flag--image IMAGE
to define the image name.service:clone
: Add the ability to specify a flag--image-version IMAGE_VERSION
to define the image version.Link Aliases
We have a finite number of services that can be linked at once to an application, limited by a hardcoded list of colors. When that list is depleted, we'll have an infinite loop where we cannot link a service to an app. Users may also wish to specify the exact alias being used for the link so that it is easy to predict what the url for a service will be.
service:link
: Fail hard when the max number of automatic alias names is reached.service:link
: Add the ability to specify a flag--alias ALIAS
for the purposes of defining the exact link alias._URL
.Memcached Memory Limit
Memcached is currently limited to 64 megabytes. This is probably good for most of our users - people use Dokku on memory-limited servers - but there are cases where they may wish to use more memory.
service:create
: Add the ability to specify a flag--memory MB
for the purposes of defining the memory in use.64
, and write this value to disk. This should be used anytime the container is recreated.Export Options
Locking tables dokku-mariadb#56
service:export
: Add the ability to specify a flag--export-options "OPTS"
to define any extra options.Querystring Values
Some frameworks use querystring values as a way to specify conditions for the connection. For instance, you might set the connection collation or pool size.
service:link
: Add the ability to specify a flag--querystring "key=value&key=value"
.?
. Chop it off it is is there.?
.Single Container Usage
Users on smaller VPSs will want to save memory by not running many containers for a database service. This will allow us to mark all community service plugins as deprecated.
service:create-database <service> <database-name>
: Create this command./var/lib/dokku/services/postgres/SERVICE/databases/NAME
, where each file is simply the name of a database.service:create
: Store the user/pass info on disk in a new format:/var/lib/dokku/services/postgres/SERVICE/auth/USERNAME
, where the username is the name of the user, and the contents are the password. Note that we will need to migrate all the old auth stuff over, including any root users.service:create-user <service> <username> <password>
: Create this command.service:link
: Add the ability to specify a flag--user USERNAME
to specify the user that will be set for a specific link.service:link
: Add the ability to specify a flag--database DATABASE
to specify the database that will be set for a specific link.The text was updated successfully, but these errors were encountered: