Skip to content

Commit

Permalink
Run docker without sudo and won't check locale settings
Browse files Browse the repository at this point in the history
  • Loading branch information
GU Yu (Byron) committed Feb 3, 2016
1 parent cd1e9b0 commit 0a3f016
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ cd swagger-codegen
vagrant up
vagrant ssh
cd /vagrant
sudo ./run-in-docker.sh mvn package
./run-in-docker.sh mvn package
```

#### Public Docker image
Expand Down
2 changes: 2 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

#Provision
config.vm.provision "shell", inline: <<-SHELL
sudo touch /var/lib/cloud/instance/locale-check.skip
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list'
sudo apt-cache policy docker-engine
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y docker-engine
sudo usermod -aG docker vagrant
SHELL

end

0 comments on commit 0a3f016

Please sign in to comment.