From fb33e5df96f9f64c0a511ecffab1dcd49b4b9d8f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 12 Sep 2021 22:55:01 -0400 Subject: [PATCH] docs: fix the variable reference for plugins where the alias does not match the variable Closes dokku/dokku-postgres#199 --- README.md | 6 +++--- subcommands/create | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3e314df..f590de8 100644 --- a/README.md +++ b/README.md @@ -82,15 +82,15 @@ dokku mysql:create lolipop You can also specify the image and image version to use for the service. It *must* be compatible with the mysql image. ```shell -export DATABASE_IMAGE="mysql" -export DATABASE_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}" +export MYSQL_IMAGE="mysql" +export MYSQL_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}" dokku mysql:create lolipop ``` You can also specify custom environment variables to start the mysql service in semi-colon separated form. ```shell -export DATABASE_CUSTOM_ENV="USER=alpha;HOST=beta" +export MYSQL_CUSTOM_ENV="USER=alpha;HOST=beta" dokku mysql:create lolipop ``` diff --git a/subcommands/create b/subcommands/create index 187f6ad..29d26e8 100755 --- a/subcommands/create +++ b/subcommands/create @@ -10,12 +10,12 @@ service-create-cmd() { #E dokku $PLUGIN_COMMAND_PREFIX:create lolipop #E you can also specify the image and image version to use for the service. #E it *must* be compatible with the ${PLUGIN_IMAGE} image. - #E export ${PLUGIN_DEFAULT_ALIAS}_IMAGE="${PLUGIN_IMAGE}" - #E export ${PLUGIN_DEFAULT_ALIAS}_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}" + #E export ${PLUGIN_VARIABLE}_IMAGE="${PLUGIN_IMAGE}" + #E export ${PLUGIN_VARIABLE}_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}" #E dokku $PLUGIN_COMMAND_PREFIX:create lolipop #E you can also specify custom environment variables to start #E the ${PLUGIN_COMMAND_PREFIX} service in semi-colon separated form. - #E export ${PLUGIN_DEFAULT_ALIAS}_CUSTOM_ENV="USER=alpha;HOST=beta" + #E export ${PLUGIN_VARIABLE}_CUSTOM_ENV="USER=alpha;HOST=beta" #E dokku $PLUGIN_COMMAND_PREFIX:create lolipop #A service, service to run command against #F -c|--config-options "--args --go=here", extra arguments to pass to the container create command