summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-11-10 11:07:24 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-11-10 11:07:24 +0100
commit3979cc8a34f47e2778c6adc31e75ebe3f59f4465 (patch)
treed9545b0b1b0b5149fb1d5fed83ec2742c4f2c2df /docker
parentc291795bf490eecbec47e85097012c4905ca9a9b (diff)
downloaddeployment-3979cc8a34f47e2778c6adc31e75ebe3f59f4465.tar.gz
deployment-3979cc8a34f47e2778c6adc31e75ebe3f59f4465.tar.bz2
deployment-3979cc8a34f47e2778c6adc31e75ebe3f59f4465.zip
removing .sh from deployed shell scripts
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/selenium/launch_chrome_container3
-rwxr-xr-xdocker/selenium/launch_selenium_test27
2 files changed, 30 insertions, 0 deletions
diff --git a/docker/selenium/launch_chrome_container b/docker/selenium/launch_chrome_container
new file mode 100755
index 0000000..b24612a
--- /dev/null
+++ b/docker/selenium/launch_chrome_container
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+docker run --name big_heap -e JAVA_OPTS=-Xmx1g -d -p 4444:4444 selenium/standalone-chrome-debug
diff --git a/docker/selenium/launch_selenium_test b/docker/selenium/launch_selenium_test
new file mode 100755
index 0000000..0ae6709
--- /dev/null
+++ b/docker/selenium/launch_selenium_test
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# Takes only the docker-machine's IP address, assuming that the
+# chrome-docker service runs on port 4444
+
+# FIXME use getopt
+TEMP=`getopt -o r: --long docker-ip: -n 'launch_selenium_test.sh' -- "$@"`
+eval set -- "$TEMP"
+
+if test "$1" != '--docker-ip'; then
+ IP=$(docker-machine ip)
+else
+ IP=$2
+fi
+
+
+# update wallet
+(cd $HOME/wallet-webex && git pull && ./configure && make)
+
+eval $(docker-machine env)
+# Yes, assume it's already running..
+docker restart big_heap
+
+# call python3 selenium script
+python3 $HOME/wallet-webex/selenium/test.py \
+ --ext-unpacked $HOME/wallet-webex \
+ --remote http://$IP:4444/wd/hub