summaryrefslogtreecommitdiffstats
path: root/go/t/docker/docker_deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'go/t/docker/docker_deploy.sh')
-rwxr-xr-xgo/t/docker/docker_deploy.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/go/t/docker/docker_deploy.sh b/go/t/docker/docker_deploy.sh
new file mode 100755
index 00000000..cd36a389
--- /dev/null
+++ b/go/t/docker/docker_deploy.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+cd $(dirname $(readlink -f $0))
+rnd_port=$(shuf -i 2000-65000 -n 1)
+docker_id=$(docker run -p $rnd_port:80 -d -v /krebs/go/t/docker/../../../:/krebs ubuntu /bin/bash /krebs/go/t/docker/dockertest/deploy)
+#docker run -p $rnd_port:80 -v /krebs/go/t/docker/../../../:/krebs ubuntu /bin/bash /krebs/go/t/docker/dockertest/deploy
+echo $docker_id on $rnd_port
+docker stop $docker_id