update $PATH of guest vm using vagrantfile

0 votes

I have been trying to export the $PATH of a guest vm to be able to use the minishift command. This is what I have in the Vagrantfile, but I am unable to figure out, why it is not working?Can anyone please help me with this?

mvm.vm.provision :shell, :inline => "echo 'export PATH=$PATH:~/minishift-1.7.0-linux-amd64' >>~/.bashrc"
Apr 13, 2018 in DevOps & Agile by anonymous
41 views

1 answer to this question.

0 votes

You can try the following command: I hope it will work for you.

mvm.vm.provision :shell, :inline => "echo 'export PATH=$PATH:/home/vagrant/minishift-1.7.0-linux-amd64' >>/home/vagrant/.bashrc"
For some reason Vagrant is not interpreting correctly.
I hope it will work for you.
answered Apr 13, 2018 by shubham
• 6,890 points

Related Questions In DevOps & Agile

0 votes
1 answer

How to set up a VM with KVM/qemu without VitualBox using Vagrant

Start the vagrant box using: vagrant up --provider=kvm But ...READ MORE

answered Apr 11, 2018 in DevOps & Agile by ajs3033
• 7,280 points
407 views
0 votes
1 answer
+1 vote
2 answers

Scp Php files into server using gradle

Tru something like this: plugins { id ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,110 points
94 views
+2 votes
2 answers

how to set different provisioning profiles for different targets using Xcode Build

For multiple targets, each task has to ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by ajs3033
• 7,280 points

edited Oct 16, 2018 by Kalgi 625 views
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
1,000 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
148 views
+5 votes
2 answers

Wildfly Swarm: Specific configuration of the Keycloak Backend environment

I worked on a swarm project which ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by shubham
• 6,890 points
435 views
+3 votes
5 answers

main roles of DevOps

Can you please brief about the roles ...READ MORE

answered Oct 16, 2018 in DevOps & Agile by Haider
82 views