Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Vagrantfile for selenoid
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box_download_insecure = true = "ubuntu/xenial64" "forwarded_port", guest: 8080, host: 8080 "forwarded_port", guest: 4444, host: 4444
config.vm.hostname = "selenoid"
config.vm.post_up_message = "Selenoid is now started, go ahead and run your tests against http://localhost:4444/wd/hub and watch them using http://localhost:8080"
config.vm.provider :virtualbox do |vb|
vb.memory = "2048"
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get remove docker docker-engine
sudo apt-get update
sudo apt-get -y install \
linux-image-extra-$(uname -r) \
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
curl -fsSL | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] \
$(lsb_release -cs) \
sudo apt-get update
sudo apt-get -y install docker-ce
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${HOME}:/root \
aerokube/cm:latest-release selenoid start \
--vnc --tmpfs 128 --last-versions 2
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${HOME}:/root \
aerokube/cm:latest-release selenoid-ui start \
--port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment