rpm-ostree/vagrant
Jonathan Lebon 12c4b5b16f vmcheck: adapt for non-vagrant hosts
This is just the final bit required to make sure the vagrant and
non-vagrant paths can work happily together. It's mostly minor fixes,
though the most major change which also affects vagrant is that we now
sync to the root home dir, rather than ~vagrant.

Closes: #524
Approved by: cgwalters
2016-11-22 17:15:20 +00:00
..
.gitignore Redo vmcheck to abstract over ssh-config, drop all building 2016-11-16 18:14:23 +00:00
README.md Redo vmcheck to abstract over ssh-config, drop all building 2016-11-16 18:14:23 +00:00
setup.yml vmcheck: adapt for non-vagrant hosts 2016-11-22 17:15:20 +00:00

Developing using Docker + Vagrant

The current tooling here is oriented towards doing builds inside a CentOS 7 pet container, with Vagrant on the host.

You should share the git working directory with the c7 container. Assuming you have git repositories stored in /srv, something like:

docker run --name c7dev --privileged -v /srv:/srv --net=host -ti centos bash

You can start the Vagrant box. To work around "fuse-sshfs" not being built into the Vagrant box, do something like this:

vagrant up ; vagrant provision; vagrant halt; vagrant up

Now, once you do a build inside the c7dev container, like:

./autogen.sh CFLAGS='-ggdb -O0' --prefix=/usr --libdir=/usr/lib64 --enable-installed-tests --enable-gtk-doc

To sync over and install the built binaries:

make vmsync

You may also want to use vmcheck, like this:

make vmoverlay && make vmcheck