diff options
| author | Paul Buetow <35781042+pbuetow@users.noreply.github.com> | 2020-12-29 09:48:56 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-29 09:48:56 +0000 |
| commit | 0fe3c8708634cc59d61bf47bd909ef0111f0d56a (patch) | |
| tree | c9f0dfa884927079de309b68c48224f4b0f00d0d /docker/spinup.sh | |
| parent | 495e9f38220a6d448b15882a235e7a9c21f21d18 (diff) | |
| parent | 0099a7ab9e1d28300c69c3b50b4ebe1cde9a8cbc (diff) | |
Merge pull request #20 from snonux/develop
Make CGo dependencies optional (e.g. Linux ACL support)
Diffstat (limited to 'docker/spinup.sh')
| -rwxr-xr-x | docker/spinup.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/spinup.sh b/docker/spinup.sh new file mode 100755 index 0000000..3890ce6 --- /dev/null +++ b/docker/spinup.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +declare -i NUM_INSTANCES=$1 +declare -i BASE_PORT=2222 + +for (( i=0; i < $NUM_INSTANCES; i++ )); do + port=$[ BASE_PORT + i + 1 ] + docker run -d --name dserver-serv$i --hostname serv$i -p $port:2222 dserver:develop +done |
