Added the container index to the network-compute-ports trigger: useful for alternative proxy implementations. Updated the documentation for the network-compute-ports trigger to clarify the arguments

This commit is contained in:
Femi Omojola committed 2020-09-08 09:26:35 -04:00
1 parent 9e6c89428e
commit 81512504a7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -738,7 +738,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
- Description: Computes the ports for a given app container - Description: Computes the ports for a given app container
- Invoked by: `internally triggered by proxy-build-config within proxy implementations` - Invoked by: `internally triggered by proxy-build-config within proxy implementations`
- Arguments: `$APP` - Arguments: `$APP $PROC_TYPE $IS_HEROKUISH_CONTAINER $CONTAINER_INDEX`
- Example: - Example:
```shell ```shell
@@ -86,7 +86,7 @@ trigger-scheduler-docker-local-scheduler-deploy() {
[[ -n "$DOKKU_START_CMD" ]] && START_CMD="$DOKKU_START_CMD" [[ -n "$DOKKU_START_CMD" ]] && START_CMD="$DOKKU_START_CMD"
if [[ "$PROC_TYPE" == "web" ]]; then if [[ "$PROC_TYPE" == "web" ]]; then
ports=($(plugn trigger network-compute-ports "$APP" "$PROC_TYPE" "$DOKKU_HEROKUISH")) ports=($(plugn trigger network-compute-ports "$APP" "$PROC_TYPE" "$DOKKU_HEROKUISH" "$CONTAINER_INDEX"))
local DOKKU_DOCKER_PORT_ARGS="" local DOKKU_DOCKER_PORT_ARGS=""
local DOKKU_PORT="" local DOKKU_PORT=""
for p in "${ports[@]}"; do for p in "${ports[@]}"; do