Jose Diaz-Gonzalez
e628e21879
chore: remove deprecated --rm-container and--rm global flags
2023-02-12 13:09:00 -05:00
Jose Diaz-Gonzalez
d27c8f09d1
chore: remove deprecated common functions
2023-02-12 13:08:45 -05:00
Jose Diaz-Gonzalez
a2444b453d
chore: remove deprecated --detach flag
...
This option was deprecated in Dokku 0.25.0.
2023-01-16 01:19:39 -05:00
Jose Diaz-Gonzalez
80fd9bbd4b
fix: run linting
2022-12-02 16:00:32 -05:00
Jose Diaz-Gonzalez
c2ebf48524
refactor: use a single implementation for checking cnb/herokuish images
...
Also use a plugin trigger for testing whether an image is herokuish or not rather than trying to mess around with sourced files.
2022-12-02 15:54:48 -05:00
Jose Diaz-Gonzalez
edd6e476b3
refactor: simplify how url generation works
...
The URLS file is no longer necessary as urls are now generated directly from the app VHOST file.
This also moves all the url generation logic to the domains plugin.
2022-12-02 02:19:59 -05:00
Jose Diaz-Gonzalez
daa4ee829e
fix: run shfmt
2022-11-22 20:34:23 -05:00
Jose Diaz-Gonzalez
c74e6ce216
refactor: use a common wrapper function to migrate config vars to properties
2022-11-22 20:27:43 -05:00
Jose Diaz-Gonzalez
4a9bdd6dc2
fix: add missing {{end}} to docker format template
2022-11-07 10:07:48 -05:00
Jose Diaz-Gonzalez
3ff5e0e3a6
fix: error out if commands using compose are executed
...
Refs #5335
2022-11-05 23:44:51 -04:00
Jose Diaz-Gonzalez
a71e4219be
fix: set the correct image source type based on label
...
We also have a special carveout for herokuish as folks may deploy built images with it.
2022-08-09 02:11:32 -04:00
Jose Diaz-Gonzalez
cfc1cfb305
feat: export DOKKU_COMMAND for use in authentication systems
...
Some auth systems may decide that an app is not available for use by a particular command vs making them wholly available or not. Exporting the variable here allows such systems to function correctly.
2022-07-17 17:58:37 -04:00
Jose Diaz-Gonzalez
db4d8dba88
refactor: consolidate app name verification into golang binary
...
This change ensures we only have to change this logic once in order to get them to apply to both languages in the codebase.
2022-05-29 11:32:24 -04:00
Jose Diaz-Gonzalez
b3d7174a7a
fix: filter apps when verifying app names
...
This ensures folks can't interact with apps that are hidden from them via the filtering performed in app listing.
2022-05-27 23:28:59 -04:00
Jose Diaz-Gonzalez
f87cd22340
feat: allow returning an unfiltered list of users
...
This is useful for upgrades or commands that _must_ perform against all apps.
2022-05-15 15:33:19 -04:00
Jose Diaz-Gonzalez
3daf33d5c2
fix: correct shfmt issue
2022-04-20 20:09:16 -04:00
Jose Diaz-Gonzalez
157297ab87
feat: ensure the image tag is correct if a build fails
...
Either retag the original image or remove the tag completely.
2022-04-20 20:09:16 -04:00
Jose Diaz-Gonzalez
63d7d28036
fix: correct a few shellcheck issues
2022-04-20 20:09:16 -04:00
Jose Diaz-Gonzalez
49d08a8fb6
fix: pass along failed build status when building from image
2022-04-16 02:44:51 -04:00
Jose Diaz-Gonzalez
62a3eff5bb
refactor: move apps listing from common plugin to apps plugin
...
This helps centralize app-related listing fetching.
2022-02-26 00:37:51 -05:00
Jose Diaz-Gonzalez
b48b79f5ca
feat: allow specifying a single process type to restart
...
This changes restarts to drop the 'release' part that currently gets triggered, which also helps reduce the possibility that a new image layer will be added due to predeploy deploy triggers.
Note that the old method essentially halfway-rebuilt the app (which was what added the extra layer). This refactor removes that, which is a bc-break.
Additionally, scaling processes will result in deploying _only_ restarting the processes being scaled.
Closes #2184
2021-10-09 18:46:17 -04:00
Jose Diaz-Gonzalez
d1a16717b3
chore: remove deprecated tar plugin
...
This plugin was deprecated in 0.24.0 in favor of git:from-archive. Users should migrate to the new command.
2021-10-09 18:43:53 -04:00
Jose Diaz-Gonzalez
3c6396fbca
feat: implement the scheduler plugin
...
This also performs a one-time migration of the DOKKU_SCHEDULER values the scheduler plugin properties.
Closes #4739
2021-10-09 18:31:59 -04:00
Jose Diaz-Gonzalez
257abfaee8
refactor: move pre-deploy call to post-release-builder
...
Some of the hooks should happen before we push images out...
2021-08-14 01:58:35 -04:00
Jose Diaz-Gonzalez
7bf61b401f
fix: call pre-deploy before deploy but after release
...
The dokku_release command adds more "stuff" by virtue of calling builder-release (the herokuish builder injects env vars).
This more closely matches previous order of operations.
Closes #4737
2021-08-12 17:35:54 -04:00
Jose Diaz-Gonzalez
e1f1531d42
refactor: call golang version of docker cleanup from shell
...
This ensures there is only a single implementation.
2021-08-08 01:56:43 -04:00
Jose Diaz-Gonzalez
f0ca3fef54
fix: correct count check for user-auth trigger
...
There are cases where the user-auth plugin exists but the events plugin is not enabled, and this accounts for that.
2021-08-07 17:55:56 -04:00
Jose Diaz-Gonzalez
a1c768b9b3
refactor: drop web installer in favor of setup via cli
...
This makes the installation a bit more secure by ensuring a user does not accidentally expose a way for unauthorized users to add new ssh keys to the system.
Additionally, this removes the extra HOSTNAME file to make the initial install process easier (that file was not modifiable by any dokku commands.
Closes #2247
2021-08-07 16:36:41 -04:00
Jose Diaz-Gonzalez
e0a513650e
Merge pull request #4715 from dokku/2574-use-sslip
...
Switch from xip.io to sslip.io
2021-08-06 02:15:53 -04:00
Jose Diaz-Gonzalez
ecb8a02356
feat: switch from xip.io to sslip.io
...
xip.io appears to be unsupported after an exodus at basecamp. Switching to sslip.io seems like a decent move.
Refs #2574
2021-08-05 23:30:58 -04:00
Jose Diaz-Gonzalez
30a15aaa7a
fix: respect pre-deploy task image manipulation
...
This requires a bc-incompatible break in terms of what triggers the pre-deploy hook (dokku internals vs schedulers).
2021-08-05 04:17:21 -04:00
Jose Diaz-Gonzalez
14b511d673
fix: correct lint error
2021-07-27 13:16:33 -04:00
Jose Diaz-Gonzalez
61d4b478ce
feat: add --no-tty flag to run and run:detached commands
2021-07-27 02:58:45 -04:00
Jose Diaz-Gonzalez
350a84d253
refactor: deprecate the --detach flag in favor of run:detached
2021-07-27 02:58:44 -04:00
Jose Diaz-Gonzalez
618158a0f3
refactor: deprecate the --rm and --rm-container flags
...
These flags are not commonly invoked by users, causing issues when cleaning up old containers. Rather than instruct users to use some random flag, just change the default to what is likely to be more common.
2021-07-27 02:58:19 -04:00
Jose Diaz-Gonzalez
26a3a8fd0a
feat: output message explaining how to remove a deploy lock when a lock is encountered
2021-07-11 21:33:32 -04:00
Jose Diaz-Gonzalez
1ec71cd509
refactor: switch detected builder so first one wins
...
Also rename internal cnb references to pack (where possible).
2021-02-28 16:19:41 -05:00
Jose Diaz-Gonzalez
ccdbaa84f9
feat: override the exit code when verifying the app name
2021-02-28 15:18:04 -05:00
Jose Diaz-Gonzalez
7aa1334af9
feat: respect DOKKU_FAIL_EXIT_CODE value in dokku_log_fail functions
2021-02-28 15:18:04 -05:00
Jose Diaz-Gonzalez
627a6bf8a5
tests: fix issue with assert urls
2021-02-13 03:52:28 -05:00
Jose Diaz-Gonzalez
d4e832c27b
tests: fix SC2145 issue
2021-02-13 02:31:24 -05:00
Jose Diaz-Gonzalez
1e915968b5
fix: correctly handle is-deployed check
...
Previously, checking if an app was deployed actually checked if there were any running processes. This is not only incorrect, but also fails to take into account applications that do not have running processes and are only used for one-off commands.
This fix migrates apps to the new "deployed" property which is set in core-post-deploy. The result is a slightly faster "deployed" check that is correct and allows non-scaled apps to actually work.
Closes #4398
2021-02-13 00:46:35 -05:00
Jose Diaz-Gonzalez
5614475521
refactor: reverse if statements
...
The shell version of IsImageHerokuishBased returns true if it is CNB for legacy reasons...
2021-02-11 06:48:38 -05:00
Jose Diaz-Gonzalez
308927adce
refactor: log what stack is being used if it is modified
2021-01-23 17:40:53 -05:00
Jose Diaz-Gonzalez
9137be814c
refactor: remove need for internal dokku calls
...
Avoid internal dokku calls will avoid potentially expensive subprocesses - in particular, user-auth will be re-invoked, which can be expensive.
2021-01-23 14:27:16 -05:00
Jose Diaz-Gonzalez
1599120c3e
fix: hardcode cnb workdir to /workspace
...
Closes #4317
2021-01-14 08:33:26 -05:00
Jose Diaz-Gonzalez
3419f18c9f
fix: correct issue where verifying an app name would bail early
...
Refs #4308
2021-01-09 07:40:45 -05:00
Jose Diaz-Gonzalez
b927c1b84d
feat: add the pid of the dokku process to event logs
2021-01-02 05:23:12 -05:00
Jose Diaz-Gonzalez
fd162f8895
feat: add verify_app_name calls to all shell subcommands
...
Without this, folks could potentially run commands against invalid applications.
2020-12-27 15:14:11 -05:00
Jose Diaz-Gonzalez
08fdfd1e38
feat: drop internal calls to verify_app_name
2020-12-27 15:14:11 -05:00