Skip to content

Commit

Permalink
Merge branch 'master' of github.com:prakasha2devops/devops-vagrant-box
Browse files Browse the repository at this point in the history
  • Loading branch information
prakasha4devops committed Jul 25, 2020
2 parents 3f3542e + 5f16de0 commit 948291d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ vagrant plugin install vagrant-vbguest vagrant-disksize vagrant-winnfsd
vagrant ssh

if you get any error while doing vagrant up , please run vagrant reload --provision command on your machine

# To run the docker

sudo usermod -aG docker $USER
sudo chmod 666 /var/run/docker.sock

5 changes: 4 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ Vagrant.configure(2) do |config|
devbox.vm.hostname = opts[:name]
devbox.vm.network "private_network", ip: opts[:eth1]
devbox.vm.network "public_network", use_dhcp_assigned_default_route: true

devbox.vm.network "forwarded_port", guest: 8080, host: 8080 # jenkins master port
devbox.vm.network "forwarded_port", guest: 50000, host: 50000 # jenkins slave port
devbox.vm.network "forwarded_port", guest: 80, host: 89 # http port

devbox.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", opts[:mem]]
v.customize ["modifyvm", :id, "--cpus", opts[:cpu]]
Expand Down

0 comments on commit 948291d

Please sign in to comment.