feat: refactor to use network plugin
- Add proxy-build-config hook to rebuild network and proxy settings for an application - Scope nginx:build-config to work only when it is the configured proxy for an application - Refactor deploy code to interact with network plugin for computed and actual ipaddr/port settings - Ensure the proxy-build-config plugin trigger is called on ps:restore - Expose a few plugin triggers for retrieving networking information for a given APP/PROC_TYPE/CONTAINER_ID combination
This commit is contained in:
committed by
Michael Hobbs
parent
ec9b8be5f8
commit
1835b04809
@@ -10,6 +10,7 @@ ps_restore_cmd() {
|
||||
|
||||
if which parallel > /dev/null 2>&1; then
|
||||
dokku_apps | parallel dokku ps:start
|
||||
dokku_apps | parallel plugn trigger proxy-build-config
|
||||
return
|
||||
fi
|
||||
|
||||
@@ -18,6 +19,7 @@ ps_restore_cmd() {
|
||||
if [[ $DOKKU_APP_RESTORE != 0 ]]; then
|
||||
echo "Restoring app $app ..."
|
||||
if ps_start "$app"; then
|
||||
plugn trigger proxy-build-config "$app"
|
||||
continue
|
||||
fi
|
||||
dokku_log_warn "dokku ps:restore ${app} failed"
|
||||
|
||||
Reference in New Issue
Block a user