Skip to content

Question: how to script a grid node in Jenkins #173

@tnguyen14

Description

@tnguyen14

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions