Commit Graph

90 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
87889957ff fix: correct imports 2023-02-08 04:12:43 -05:00
Jose Diaz-Gonzalez
837f74d169 feat: add support for network related flags on create, clone, and upgrade
Also add some tests to cover all the network-related functionality.
2023-02-08 04:12:43 -05:00
Jose Diaz-Gonzalez
b7b6e071e1 feat: add network properties to :info output 2023-02-07 18:24:54 -05:00
Jose Diaz-Gonzalez
440c098bb3 docs: add example for multiple networks 2023-02-07 18:24:54 -05:00
Jose Diaz-Gonzalez
90021e326e fix: correct error message for valid/invalid properties 2023-02-07 18:24:54 -05:00
Jose Diaz-Gonzalez
31e4c43f98 fix: actually call the :set function and ensure we write properties to the correct namespace 2023-02-07 18:24:54 -05:00
Jose Diaz-Gonzalez
0dca37d8a1 feat: add support for specifying an initial-network property
This network is the network that is associated with the container on creation. If specified, then the bridge network is not attached to the service.

Only a single initial network can be specified at this time.
2023-02-07 18:24:54 -05:00
Jose Diaz-Gonzalez
a6ec1ffd8c fix: properly support new image and image-version values during plugin upgrades
Closes dokku/dokku-mongo#143
Closes dokku/dokku-redis#193
Closes dokku/dokku-redis#195
2023-02-07 07:09:23 -05:00
Jose Diaz-Gonzalez
b68083401e feat: use mongosh for connect commands
Closes #156
2023-02-07 05:48:20 -05:00
Jose Diaz-Gonzalez
44e7921822 refactor: use DOCKER_BIN env var instead of calling docker directly
This will allow us to alias the docker binary with podman for most actions - other than updating running containers.
2023-02-07 03:53:08 -05:00
Jose Diaz-Gonzalez
5f5eb56a99 refactor: use namespaced docker commands for interacting with the docker binary 2023-02-07 03:39:42 -05:00
Jose Diaz-Gonzalez
d00235d173 fix: pull the new docker image when upgrading a service if DOCKER_IMAGE_PULL is not disabled
Refs dokku/dokku-clickhouse#51
2023-02-07 02:45:35 -05:00
Jose Diaz-Gonzalez
e2a72610c8 feat: add :pause subcommand and make :stop subcommand actually remove the container 2022-12-26 17:39:49 -05:00
Jose Diaz-Gonzalez
c790b261aa fix: move warning below service name verification 2022-07-19 01:34:21 -04:00
Jose Diaz-Gonzalez
9f8d1d2c2e refactor: set the plugin name as the first argument to the service-action trigger
This is a breaking change, but is necessary as otherwise it is impossible to know which datastore plugin a team is meant for.
2022-07-10 15:29:11 -04:00
Jose Diaz-Gonzalez
0c18b05d97 fix: ensure the new service does not exist when cloning an existing service 2022-07-06 01:47:31 -04:00
Jose Diaz-Gonzalez
2c26af4bc5 fix: ensure we check if the service exists before entering it 2022-07-06 01:36:40 -04:00
Jose Diaz-Gonzalez
72bf3d5d30 docs: clarify unit for container memory limit 2022-01-22 04:31:53 -05:00
Jose Diaz-Gonzalez
529d339ee5 feat: allow tailing a specific number of log lines 2021-10-26 22:27:13 -04:00
Jose Diaz-Gonzalez
be5abcc9fa docs: use a 'standard' name for the data dump 2021-09-13 03:25:05 -04:00
Jose Diaz-Gonzalez
29caa13725 docs: document the possibility of zombie processes on ssh disconnect for :connect and :enter commands
Apparently terminating the ssh connection that runs 'docker exec' may result in a process leak as the signal isn't propagated properly (moby/moby#9098). Since we cannot fix this, we should document it so that users do not stumble upon the issue unawares.

Closes dokku/dokku-postgres#212
2021-09-13 03:21:23 -04:00
Jose Diaz-Gonzalez
7e138018e2 docs: properly spell lollipop
I've been misspelling my stand-in variable name for years...
2021-09-13 00:57:33 -04:00
Jose Diaz-Gonzalez
87bd7e61ad feat: allow setting shm-size on created containers
Refs dokku/dokku-postgres#188
Closes dokku/dokku-postgres#201
2021-09-13 00:46:48 -04:00
Jose Diaz-Gonzalez
e637d6edc1 docs: correctly represent the url and env vars that get injected via docker link
Closes dokku/dokku-postgres#221
2021-09-12 23:38:51 -04:00
Jose Diaz-Gonzalez
6a55fc4474 docs: fix the variable reference for plugins where the alias does not match the variable
Closes dokku/dokku-postgres#199
2021-09-12 22:55:01 -04:00
Jose Diaz-Gonzalez
e9e9c444df docs: make tense in command descriptions more consistent 2021-09-12 22:37:15 -04:00
Jose Diaz-Gonzalez
38d30d24b5 feat: add ability to set container config options during create/clone/upgrade actions
Also add to documentation where possible.

Closes dokku/dokku-mongo#131
2021-09-12 22:16:14 -04:00
Jose Diaz-Gonzalez
008fe264c5 fix: allow non-english characters in :connect shell
Closes dokku/dokku-mysql#116
2021-09-12 08:25:19 -04:00
Jose Diaz-Gonzalez
dd8a5a41f0 feat: add the ability to constrain memory on service start/clone
Refs dokku/dokku-redis#86
2021-09-12 07:43:01 -04:00
Jose Diaz-Gonzalez
f1d7100475 docs: add a note as to how to specify an interface/ip to bind on when exposing a service
Closes dokku/dokku-mongo#128
2021-09-12 07:09:53 -04:00
Jose Diaz-Gonzalez
d480a76f07 docs: document how to restore a backup 2021-09-12 06:59:48 -04:00
Jose Diaz-Gonzalez
483e6c54cc feat: add plugin trigger for service creation and deletion 2021-02-25 19:54:59 -05:00
Jose Diaz-Gonzalez
31ade32c05 fix: allow config directory to be configurable
For postgres, the config directory doesn't actually exist, so adding this configurability allows the plugin's info command to report correctly.
2020-05-16 02:49:34 -04:00
Jose Diaz-Gonzalez
956bc4aafa docs: correct casing/quoting on sentences 2020-05-15 00:34:37 -04:00
Jose Diaz-Gonzalez
19b4960ea2 docs: make the gpg passphrase a bit more clear 2020-05-14 23:33:01 -04:00
Jose Diaz-Gonzalez
76054a308f docs: drop unimpemented commands from readme and reorganize 2020-04-04 16:43:31 -04:00
Jose Diaz-Gonzalez
61664799dd feat: move all image names to config file
This allows us to more quickly update the image versions in use for tertiary images.
2020-03-30 20:09:03 -04:00
Jose Diaz-Gonzalez
ff3a221f22 feat: add service:links command
This allows users to script against apps that are linked to a given service
2019-07-15 14:59:05 -07:00
Jose Diaz-Gonzalez
2b507c6938 chore: move to helper functions for fetching passwords 2019-07-11 16:34:35 -07:00
Jose Diaz-Gonzalez
1ad804adba feat: upgrade busybox to 1.31.0-uclibc 2019-07-11 13:36:40 -07:00
Jose Diaz-Gonzalez
238f09dae0 chore: run shfmt 2019-05-30 11:06:25 -04:00
Jose Diaz-Gonzalez
2f2de28e87 feat: pin busybox to an actual version
Rather than dancing around what version of busybox to use, pin it to the latest, known good version of busybox. This will give us confidence in what is being shipped and run on a user's machine.
2019-03-25 14:14:22 -04:00
Jose Diaz-Gonzalez
e6cd4fb666 fix: pin busybox in run commands to the image we pull down 2019-03-25 13:51:15 -04:00
Jose Diaz-Gonzalez
e666251bde chore: unify with other plugins 2019-03-19 14:58:28 -04:00
Jose Diaz-Gonzalez
bc6a5422d6 fix: correct the validation message 2019-03-09 16:39:34 -05:00
Jose Diaz-Gonzalez
62902e7d9c refactor: call service_container_rm from subcommands/destroy 2019-03-08 23:27:55 -05:00
Jose Diaz-Gonzalez
1687a1264c fix: ensure any backup cron files are deleted when the service is destroyed
Closes dokku/dokku-redis#118
2018-12-02 05:10:06 -05:00
Jose Diaz-Gonzalez
8c578d0331 fix: correct documentation around the passphrase parameter
Closes dokku/dokku-mysql#101
2018-12-02 04:33:58 -05:00
Jose Diaz-Gonzalez
2f6c493fdd fix: correct issues in upgrade and fix tests 2018-10-11 14:16:47 -04:00
Jose Diaz-Gonzalez
44c3c64c9b feat: skip upgrade if service is already up to date 2018-10-11 00:04:52 -04:00