From 076db03abf9ac12a057b784a3e0999180ca53543 Mon Sep 17 00:00:00 2001 From: startxfr Date: Sat, 6 Dec 2014 01:09:00 +0100 Subject: adding script for automating image generation and starting container for testing and benchmarks --- Services/dockerhub_run.sh | 9 +++++++++ Services/local_build.sh | 9 +++++++++ Services/local_run.sh | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100755 Services/dockerhub_run.sh create mode 100755 Services/local_build.sh create mode 100755 Services/local_run.sh (limited to 'Services') diff --git a/Services/dockerhub_run.sh b/Services/dockerhub_run.sh new file mode 100755 index 0000000..18c47a2 --- /dev/null +++ b/Services/dockerhub_run.sh @@ -0,0 +1,9 @@ +#!/bin/bash +docker run -d -p 80:80 --name="apache" startx/sv-apache +docker run -d -p 3306:3306 --name="mariadb" startx/sv-mariadb +docker run -d -p 11211:11211 --name="memcache" startx/sv-memcache +docker run -d -p 27017:27017 --name="mongo" startx/sv-mongo +docker run -d -p 8000:8000 --name="nodejs" startx/sv-nodejs +docker run -d -p 82:80 --name="php" startx/sv-php +docker run -d -p 5432:5432 --name="postgres" startx/sv-postgres +docker run -d -p 22022:22 --name="ssh" startx/sv-ssh \ No newline at end of file diff --git a/Services/local_build.sh b/Services/local_build.sh new file mode 100755 index 0000000..47d1df6 --- /dev/null +++ b/Services/local_build.sh @@ -0,0 +1,9 @@ +#!/bin/bash +docker build -t sv-apache Services/apache/ +docker build -t sv-mariadb Services/mariadb/ +docker build -t sv-memcache Services/memcache/ +docker build -t sv-mongo Services/mongo/ +docker build -t sv-nodejs Services/nodejs/ +docker build -t sv-php Services/php/ +docker build -t sv-postgres Services/postgres/ +docker build -t sv-ssh Services/ssh/ \ No newline at end of file diff --git a/Services/local_run.sh b/Services/local_run.sh new file mode 100755 index 0000000..8c4a027 --- /dev/null +++ b/Services/local_run.sh @@ -0,0 +1,9 @@ +#!/bin/bash +docker run -d -p 81:80 --name="lbapache" sv-apache +docker run -d -p 3307:3306 --name="lbmariadb" sv-mariadb +docker run -d -p 11212:11211 --name="lbmemcache" sv-memcache +docker run -d -p 27018:27017 --name="lbmongo" sv-mongo +docker run -d -p 8001:8000 --name="lbnodejs" sv-nodejs +docker run -d -p 83:80 --name="lbphp" sv-php +docker run -d -p 5433:5432 --name="lbpostgres" sv-postgres +docker run -d -p 22023:22 --name="lbssh" sv-ssh \ No newline at end of file -- cgit v1.2.3