forked from fjammes/tuto-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# cat /proc/meminfo | ||
|
||
serverCount=10 | ||
startDate=$(date) | ||
for n in $(seq 1 1 $serverCount) | ||
do | ||
hostPort=$(($n + 10000)) | ||
provider="World #$n" | ||
echo "Starting $n. Host Port: $hostPort, Message: $provider" | ||
docker run -d -p $hostPort:5000 -e "PROVIDER=$provider" training/webapp | ||
done | ||
echo | ||
echo Started $n containers. Start time: $startDate, end time: $(date) | ||
|
||
# Stop all: docker stop $(docker ps -q) | ||
# Remove all stopped: docker rm $(docker ps -aq) | ||
|
||
# Test run: | ||
# free –m: 1494 | ||
# 1 Container: 1480 | ||
# 100 Containers: 124 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes.