Skip to content

Instantly share code, notes, and snippets.

@davidski
Created February 7, 2016 18:55
Show Gist options
  • Save davidski/08ece9bdf73e670e3e8d to your computer and use it in GitHub Desktop.
Save davidski/08ece9bdf73e670e3e8d to your computer and use it in GitHub Desktop.
Rstats Docker Configuration with Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.allowed_synced_folder_types = [:rsync]
config.vm.synced_folder ".", "/vagrant", disabled: false, type: 'rsync'
config.vm.box = 'bento/ubuntu-14.04'
config.vm.define "dockerhost"
config.vm.provision "docker"
end
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker'
config.vm.allowed_synced_folder_types = [:rsync]
config.vm.synced_folder ".", "/vagrant", disabled: false, type: 'rsync'
config.ssh.insert_key = true
config.ssh.username = 'docker'
config.ssh.username = 'tcuser'
config.vm.define "mycan"
config.vm.provider "docker" do |d|
d.image = "kaggle/rstats"
d.name = "mycan"
d.has_ssh = true
d.vagrant_machine = "dockerhost"
d.vagrant_vagrantfile = "./DockerHostVagrantfile"
d.cmd = ["ls"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment