Fix Vagrant and add libvirt support

This commit is contained in:
Matt Prahl
2016-12-06 13:17:05 -05:00
parent c362cc5089
commit 392a53d88b
3 changed files with 11 additions and 8 deletions

8
Vagrantfile vendored
View File

@@ -24,19 +24,17 @@ $script = <<SCRIPT
rpm-build \
swig \
systemd-devel
systemctl enable fedmsg-relay
systemctl start fedmsg-relay
cd /tmp/module_build_service
python setup.py install
mbs-upgradedb
mbs-gencert
systemctl enable fedmsg-relay
systemctl start fedmsg-relay
echo "export KRB5CCNAME=FILE:/var/tmp/krbcc" >> ~/.bashrc
SCRIPT
Vagrant.configure("2") do |config|
# $ wget https://download.fedoraproject.org/pub/fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-Vagrant-24-1.2.x86_64.vagrant-libvirt.box && \
# vagrant box add Fedora-Cloud-Base-Vagrant-24-1.2.x86_64.vagrant-libvirt.box --name fedora-24
config.vm.box = "fedora-24"
config.vm.box = "fedora/24-cloud-base"
config.vm.synced_folder "./", "/tmp/module_build_service"
config.vm.provision "file", source: "/var/tmp/krbcc", destination: "/var/tmp/krbcc", run: "always"
config.vm.network "forwarded_port", guest: 5000, host: 5000

View File

@@ -15,7 +15,7 @@ class BaseConfiguration(object):
dbdir, 'module_build_service.db'))
SQLALCHEMY_TRACK_MODIFICATIONS = True
# Where we should run when running "manage.py runssl" directly.
HOST = '127.0.0.1'
HOST = '0.0.0.0'
PORT = 5000
# Global network-related values, in seconds
@@ -86,7 +86,6 @@ class BaseConfiguration(object):
class DevConfiguration(BaseConfiguration):
LOG_BACKEND = 'console'
LOG_LEVEL = 'debug'
HOST = '0.0.0.0'
# Global network-related values, in seconds
NET_TIMEOUT = 5

View File

@@ -51,7 +51,13 @@ command will pull the latest base image and perform a clean build without using
Vagrant
-------
Once your environment is setup, run (depending on your OS, you may need to run it with sudo)::
If you are using VirtualBox, you will need to install the Vagrant plugin `vagrant-vbguest`.
This plugin automatically installs guest additions to Vagrant guests that do not have them installed.
The official Fedora Vagrant box unfortunately does not contain the guest additions, and they are needed for folder syncing::
$ vagrant plugin install vagrant-vbguest
To launch Vagrant, run (depending on your OS, you may need to run it with sudo)::
$ vagrant up