Created
February 7, 2016 18:55
-
-
Save davidski/08ece9bdf73e670e3e8d to your computer and use it in GitHub Desktop.
Rstats Docker Configuration with Vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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