Jose Diaz-Gonzalez
06cb7a0d55
fix: properly update formations
2021-08-01 19:06:33 -04:00
Jose Diaz-Gonzalez
401683a305
refactor: write DOKKU_SCALE contents to scale property
...
- remove extraction of DOKKU_SCALE
- migrate to property system
- rewrite internals to use a FormationSlice instead of a map
2021-08-01 17:47:04 -04:00
Jose Diaz-Gonzalez
bd4621070c
feat: implement ps-can-scale
2021-08-01 16:27:13 -04:00
Jose Diaz-Gonzalez
ef262c26e8
feat: override all existing scale parameters when calling ps-set-scale
2021-08-01 16:20:19 -04:00
Jose Diaz-Gonzalez
247698fea6
refactor: move can-scale check out to command
...
If the internals call ps-set-scale, we should always respect it.
2021-08-01 16:07:55 -04:00
Jose Diaz-Gonzalez
302537efd2
refactor: skip image fetching when deploys are skipped
2021-08-01 16:07:26 -04:00
Jose Diaz-Gonzalez
c62bff3002
refactor: hide dokku scale file parsing inside ps plugin
2021-08-01 01:21:46 -04:00
Jose Diaz-Gonzalez
9d0bc930a6
fix: handle empty lines and comments in DOKKU_SCALE file
2021-07-31 20:54:14 -04: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
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
0a533c754f
refactor: split ps:scale func into different functions
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
a93f504d45
chore: short-circuit procfile command fetching if there is no procfile
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