Skip to content

Add restart and/or ensure-running commands #3

Description

@schlomo

I would like to be able to have

curl -sSL https://raw.githubusercontent.com/dosel/t/i/p | env USE_NET_HOST=true bash -s start

in my test runner scripts before starting the tests. ATM this fails if Zalenium is already running:

sschapiro@zalando-26723:~/src/schlomo/zalenium-demo$ time curl -sSL https://raw.githubusercontent.com/dosel/t/i/p | env USE_NET_HOST=true bash -s start ; echo RETURN_CODE: $?
Checking dependencies... Done Checking dependencies.
latest: Pulling from dosel/zalenium
Digest: sha256:f17d8ba75b3677a2d66a42417d2b011ca0ac080a1f4b21664d2a3c4030600368
Status: Image is up to date for dosel/zalenium:latest
latest: Pulling from elgalu/selenium
Digest: sha256:eb49a354d1b77d2e8fbcf43d5222745d14056e500ab47c5f78a749e096ff746f
Status: Image is up to date for elgalu/selenium:latest
Removing exited docker-selenium containers...
014b9781d6f7
Starting Zalenium in docker...
WARN: Sauce Labs will not be enabled because the var $SAUCE_USERNAME is NOT present
WARN: BrowserStack will not be enabled because the var $BROWSER_STACK_USER is NOT present
WARN: Testing Bot will not be enabled because the var $TESTINGBOT_SECRET is NOT present
docker: Error response from daemon: Conflict. The container name "/zalenium" is already in use by container "45916a8be9b6d45a699d9592b461525462ce7c9f1caea77389e19e4d189b3f37". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

real	0m6,333s
user	0m0,270s
sys	0m0,136s
RETURN_CODE: 125

I therefore kindly ask you to enhance the script so that it can be added everywhere as an "ensure Zalenium is running" script.

Maybe it is also enough to add a new command "restart" or "ensure" that first stops and then starts Zalenium.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions