Merge pull request #4128 from mailformfemi/master
Added the container index to the network-compute-ports trigger
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -85,7 +85,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
|
||||||
|
|||||||
Reference in new issue
Block a user