This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
add NFS support and rewrite bootlocal.sh proccess #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey,
NFS
In order to be able to use NFS for
synced_folder
i've addnfs-client
start command in bootlocal.shTo use
NFS
, addtype: "nfs"
to yoursynced_folder
.Bootlocal
When we want to execute commands when
/vagrant
is mounted, we can useSYSTEM-V
but, vagrant provision run when folders are mounted.So we can simply use a
config.vm.provision "shell", path: "bootlocal.sh", run: "always"
.If something more complicated is needed,you can add rules when filesystems are mounted:
in /etc/udev/rules.d/
create a new file like50-vagrant-mounts.rules
If you want to use
bootlocal.sh
in a fresh project, you just need to create a file next to the vagrantfile.Common issue
When using vagrant
1.7.x
with ensecure key, vagrant will replace this key by a new one. It's throw error when reloading the box (Warning: Authentication failure. Retrying...
).To resolve this little issue, simply add:
config.ssh.insert_key = false
to your Vagrantfile.Tricks
To make docker client working with a private networked docker server you need to add in your
bootlocal.sh
:Next, you need to export cert path:
export DOCKER_CERT_PATH=$PWD/tls
See ya.