advance docker builds
authorKonrad Rosenbaum <konrad@silmor.de>
Sun, 10 Dec 2017 06:57:06 +0000 (07:57 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Sun, 10 Dec 2017 06:57:06 +0000 (07:57 +0100)
Change-Id: I9a26113960f470ac304d770727ae4b8cd4782bdc

tests/docker/cleanup.sh [new file with mode: 0755]
tests/docker/qtenv/start.sh

diff --git a/tests/docker/cleanup.sh b/tests/docker/cleanup.sh
new file mode 100755 (executable)
index 0000000..b063777
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+echo killing exited containers...
+docker rm $(docker ps -a|grep Exited|cut -f 1 -d ' ')
+echo cleaning up weakly names containers...
+docker rmi $(docker images |grep '<none>'|grep -v seconds|grep -v minute|while read a b c d ; do echo $c ; done) || true
+echo done.
index 66cc201..58aeca8 100755 (executable)
@@ -12,4 +12,4 @@ test -d /home/konrad/.config/qtchooser && {
        ln -sf /home/konrad/.config/qtchooser /jenkins/.config/qtchooser
        echo "Just Linked Qt-Chooser Dir."
 } || echo "Qt-Chooser Dir not Found, not Linking it."
-su jenkins -c "nice java -jar slave.jar"
+su jenkins -c "nice java -jar slave.jar $1/computer/$2/slave-agent.jnlp"