annotate testbench-node/docker-entrypoint.sh @ 266:b72855a930f1

simplify method of getting project name
author smith@nwoca.org
date Mon, 12 Nov 2018 21:12:31 +0000
parents 0f366721a499
children b8373a99ad4d
rev   line source
77
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
1 #!/bin/bash
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
2 set -e
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
3
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
4 case "$1" in
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
5
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
6 node)
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
7 java -jar testbench-standalone.jar -role node -hub http://$HUB_HOST:4444/grid/register -browser "browserName=phantomjs"
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
8 ;;
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
9
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
10 *)
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
11 exec "$@"
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
12 ;;
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
13
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
14 esac
0f366721a499 add dockerfiles for testbench grid
smith@nwoca.org
parents:
diff changeset
15