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
be26f45b5a
fix: use correct plugin trigger
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
36dc98452d
feat: add function for listing files within a directory by prefix
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
cf4a533f2f
feat: add common.CatFile()
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
bb9f764b9f
fix: sync code to bash implementation
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
ebdf38e136
refactor: use procfile-get-command plugin trigger instead of direct ps function calls
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
c72bbf41ea
chore: use helper method
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
34343a846d
chore: drop alias
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
e0a70411dd
fix: create the file if it does not exist
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
947b2d4db6
fix: add missing comment
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
39984980fb
fix: correct io tests
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
c7becc6cad
refactor: move all subprocess-related code to new file
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
74f27480fc
refactor: move all docker-related functions to new file
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
33d3722060
refactor: move common io-related functions into new file
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
1b4559c4a4
chore: drop unused ps import
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
bd132ed7c6
feat: implement helper functions for dockeroptions
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
66696d0b46
refactor: export SetPermissions function
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
943e032d12
refactor: use path/filepath instead of path for joining path parts
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
236a279793
chore: add todos
2020-11-21 20:57:33 -05:00
Jose Diaz-Gonzalez
67192cf664
Merge pull request #4139 from Yihao-G/master
...
Allow controlling Nginx proxy-buffer-size, proxy-buffering, proxy-buffers, proxy-busy-buffers-size
2020-11-17 03:16:09 -05:00
Aubrey Hewes
607b11ab6b
fixed: when adding a cert remove previous cert before copying the new one
...
This fixes when a user (or plugin) has replaced the cert with a symlink; else the symlinked file would be overwritten.
This mainly is in the case of a global-cert (plugin) wildcard cert
2020-10-15 13:32:56 +02:00
Yihao
30414cbd0c
feat: Allow controlling nginx proxy-buffer-size, proxy-buffering, proxy-buffers, proxy-busy-buffers-size
2020-09-19 09:51:55 +09:30
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
ecc6c9e01d
Merge pull request #4129 from dokku/4102-prohibit-non-dns-names
...
Prohibit non-dns names for apps and process types
2020-09-09 23:39:27 -04:00
Jose Diaz-Gonzalez
7e9f98b513
Merge pull request #4080 from hugopeixoto/fix/app-vhost-usage
2020-09-09 21:23:15 -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
becf7c1f86
feat: allow customizing the various nginx templates
...
This will let custom distributions of Dokku to override the internal templates without needing to repackage Dokku or overwrite core files.
2020-09-06 13:57:35 -04:00
Jose Diaz-Gonzalez
70c947289f
Merge pull request #4121 from dokku/4087-nginx-extract-disable
...
Add ability to disable custom ninx.conf.sigil extraction
2020-09-05 11:48:57 -04:00