Skip to content

Instantly share code, notes, and snippets.

@jesg
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save jesg/f4e86e897010edc3f46a to your computer and use it in GitHub Desktop.

Select an option

Save jesg/f4e86e897010edc3f46a to your computer and use it in GitHub Desktop.
systemd config for standalone selenium on docker
[Unit]
Description=Selenium Standalone Server
Requires=docker.service
After=docker.service
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill selenium-standalone
ExecStartPre=-/usr/bin/docker rm selenium-standalone
ExecStartPre=-/usr/bin/docker pull jesg/selenium:standalone
ExecStart=/usr/bin/docker run -p 4444:4444 -p 5910:5910 --name selenium-standalone -t jesg/selenium:standalone
ExecStop=/usr/bin/docker kill selenium-standalone
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment