Skip to content

Commit

Permalink
Cleanup run.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrm50 committed Nov 2, 2023
1 parent 763e768 commit f56c9d1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/docker-network/run.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#!/bin/bash
set -e


# Create a function to join an array of strings by a given character
function join { local IFS="$1"; shift; echo "$*"; }

# All parameters can be optional now, just make sure we don't have too many
if [[ $# -gt 4 ]] ; then
echo 'Call with ./run [replicas=1|2|3|...] [monitoring=0|1] [feature=0|1]'
echo 'Call with ./run [monitoring=0|1]'
exit 0
fi

REPLICAS=${1:-1}
MONITORING=${2:-0}
MONITORING=${1:-0}

export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
Expand Down

0 comments on commit f56c9d1

Please sign in to comment.