I am a bit confused by the documentation about how to use the images.
Once the hub container is running, it says to do something like
CH=$(docker run --rm --name=ch \
--link selenium-hub:hub -v /e2e/uploads:/e2e/uploads \
selenium/node-chrome:2.52.0)
I don't understand what is the use of the CH=$() syntax? The above is the same as just running docker run --rm ..., as both will run the container in the foreground and will exit only when pressing Ctrl-C.
It is advised that each node container should be run as a single process, but I wonder how I can continue in the CI flow (in Jenkins) to run tests that would connect to Selenium without sending the container into the background?
My knowledge of shell scripting is limited, so perhaps there is something I'm missing here. Any advice or clarification is greatly appreciated!
I am a bit confused by the documentation about how to use the images.
Once the hub container is running, it says to do something like
I don't understand what is the use of the
CH=$()syntax? The above is the same as just runningdocker run --rm ..., as both will run the container in the foreground and will exit only when pressingCtrl-C.It is advised that each node container should be run as a single process, but I wonder how I can continue in the CI flow (in Jenkins) to run tests that would connect to Selenium without sending the container into the background?
My knowledge of shell scripting is limited, so perhaps there is something I'm missing here. Any advice or clarification is greatly appreciated!