Skip to content

Commit

Permalink
Merge pull request wckr#19 from ailispaw/dev
Browse files Browse the repository at this point in the history
Revise shell provisioner for DockerRoot
  • Loading branch information
ixkaito committed Dec 16, 2015
2 parents c0288a2 + a9f3e1c commit 6b916d5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ Vagrant.configure(2) do |config|
# for NFS synced folder
# config.vm.synced_folder "./data", "/home/docker/data", create: true, type: "nfs", mount_options: ["nolock", "vers=3", "udp"]

# config.vm.provision :shell, privileged: false, inline: <<-EOS
# curl -O https://raw.githubusercontent.com/wckr/wocker-bashrc/master/bashrc && mv -f bashrc ~/.bashrc && source ~/.bashrc
# docker pull wocker/wocker:latest
# wocker run --name wocker
# EOS
config.vm.provision :shell, privileged: false, inline: <<-EOS
set -e
wget -q -O ~/.bashrc https://raw.githubusercontent.com/wckr/wocker-bashrc/master/bashrc
sed -i -e 's/curl -OL/wget/' ~/.bashrc
source ~/.bashrc
echo "source ~/.bashrc" > ~/.bash_profile
docker pull wocker/wocker:latest
wocker run --name wocker
EOS
end

0 comments on commit 6b916d5

Please sign in to comment.