Jose Diaz-Gonzalez
f7863c8391
fix: handle clone and rename properly
2020-11-28 00:39:28 -05:00
Jose Diaz-Gonzalez
bf17023639
refactor: simplify ps:scale setup
2020-11-23 00:11:10 -05:00
Jose Diaz-Gonzalez
97513dee91
fix: handle case where deploying app image does not exist
...
This happens if ps:scale is called before a deploy.
Also refactor GetDeployingAppImageName() to return an error as the second return parameter.
2020-11-23 00:11:00 -05:00
Jose Diaz-Gonzalez
fceb412fb1
fix: reference extracted Procfile
...
Rather than attempting to always extract the Procfile, reference the one that was extracted by the last deploy. This fixes issues where 'docker container cp' may fail intermittently for lord knows what reason.
Closes #4083
2020-11-22 17:14:18 -05:00
Jose Diaz-Gonzalez
ae1b1c7274
chore: move function to internal
2020-11-21 21:07:20 -05:00
Jose Diaz-Gonzalez
53a76b1353
feat: implement ps:retire
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
5fd1772c3a
chore: drop implemented function
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
ab0cc6c444
fix: implement ps:restore
...
Also add all the niceties around parallelism that were introduced for the other commands.
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
8ae597ad1d
fix: correct help output
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
e6e5ede436
refactor: make parallel commands available to all of Dokku
...
There are other places in the codebase that currently act on all apps or could benefit from being able to do so. Being able to run `common.RunCommandAgainstAllApps()` and get that for free will be a boon to implementing this functionality elsewhere.
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
a19efc1cfa
chore: drop all references to all commands where possible.
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
28a36c4908
feat: add proper parallel support
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
6e0c376b62
fix: correctly handle property and data perms
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
c9a0f88bf1
fix: correct a few stickler errors
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
f558008574
fix: correct a few stickler errors
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
b44bc686a1
docs: update docs for ps commands
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
037b99865d
fix: use CamelCase for constants
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
1b50b4ab0a
fix: ensure the scale file has correct processes when it exists
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
bc9a60f696
feat: switch to updateScalefile from generateScalefile
...
The process is the same.
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
44ce5c76ae
fix: move log message to correct location
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
702e9cf66c
fix: zero out entries that don't exist in the scale file
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
f13ee16ab8
feat: add support for process state in ps:report output
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
82f13af166
chore: return early
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
23ad4bb230
refactor: add ability to skip deploys and fix process scaling
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
a8ccc7d2a7
feat: generate the scale file after app creation
...
The web process always starts off at `1`, so this is relatively benign.
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
0a533c754f
refactor: split ps:scale func into different functions
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
f6efb53491
fix: reference image instead of imageTag
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
e8d0965a33
feat: implement all of ps:report
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
db435c40e5
fix: do not delete the destination scale file if it was not extracted previously
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
bf84405b43
fix: handle scaling properly when there is no procfile
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
833a64cc0e
fix: check if it can scale by checking for an extracted file
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
54fb2b5d75
feat: suppress output when not necessary
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
815cd530c8
chore: remove functions
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
a93f504d45
chore: short-circuit procfile command fetching if there is no procfile
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
cae561f7b9
feat: extract procfile when fetching command as necessary
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
f9969a0e61
refactor: drop extra args from procfile-extract
...
They were not necessary.
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
06ce3dfadb
fix: remove unused variable
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
ab1d15216c
refactor: drop the last argument from procfile-get-command
...
No external plugin should need to know the internals of where processes are.
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
e8cfbfad36
fix: drop todos
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
e7ee7a1781
refactor: implement most of ps plugin in golang
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
3714a231a9
chore: drop unused code
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
696df45306
refactor: extract release_and_deploy calls to a plugin trigger
...
Better would be to separate the release and deploy aspects into distinct triggers - as well as have it release a specific image - but this is a good first pass.
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
752a0cacd9
fix: clear proxy configs on boot
...
Unfortunately, Docker does not persist container IPs on boot, so containers may come up with the wrong IP, resulting in proxying to the incorrect app after a server restart. Instead, we should delete the configs and let ps:restore rebuild the proxy config correctly.
Closes #3932
2020-09-10 01:58:45 -04:00
Jose Diaz-Gonzalez
0f514f300e
feat: prohibit non-dns names for apps and process types
...
This is necessary for ensuring ssl certificates can be auto-retrieved for apps, and also easing integration into schedulers that use names and process types as part of DNS records.
As well, this fixes an issue where we may potentially have invalid DNS entries when adding apps to custom networks.
Closes #4102
Closes #4114
2020-09-09 20:07:50 -04:00
Jose Diaz-Gonzalez
4d735b4d88
fix: do not output error on checking for process type existence
2020-08-31 18:55:39 -04:00
Jose Diaz-Gonzalez
9aab7dce7d
feat: create ps directory on app create
2020-08-31 04:22:40 -04:00
Jose Diaz-Gonzalez
2478556df1
fix: ensure the base directory exists before extracting the file
2020-08-31 04:22:27 -04:00
Jose Diaz-Gonzalez
a2d4ba4689
fix: set correct args for fn-procfile-extract
2020-08-31 04:21:59 -04:00
Jose Diaz-Gonzalez
6df38a56d1
fix: properly set property...
2020-08-30 14:22:55 -04:00
Jose Diaz-Gonzalez
68debb44f7
refactor: use plugin trigger to delete procfile
2020-08-30 14:22:47 -04:00