This specialized agent provides additionally a working graphical session and comes equipped with a guaranteed compatible Chrome/Chromedriver couple. The graphical stack is built using Xvfb as a fully in-memory X-11 server.
No graphical components should be needed on the underlying machine servicing the Docker host and running the images.
--publish option binds the port 5900 of the container to a physical port of the machine hosting Docker. This is compulsory to do this if you want to run the docker image in “debug mode” using the --x11-vnc-debug option. For more information, please consult our documentation here.
--name demo-tf-agent : The nickname of the container that will be created. Can be choose to one’s liking. If not set a random name will be assigned to the container.
--user jenkins : The technical user with proper rights to run Jenkins.
--privileged : Due to Chrome own limitations the user shoud be in “Privileged” mode.
--env “JENKINS_AGENT_NAME={agent_name}” : Enables one to specify the name of the declared node in Jenkins. Modify {agent_name} accordingly.
--env “JENKINS_SECRET={secret}” : Enables one to specify the secret of the declared node in Jenkins. Modify {secret} accordingly.
-url http://{jenkins_url} : Enables one to specify the URL of the Jenkins master server.
Once done, the node should appear as online on the Jenkins interface and its build queue should be in “idle”.
The agent is now ready to execute its first Squash-TF tests.