mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-11-29 07:34:49 +08:00
Fix Vagrant and add libvirt support
This commit is contained in:
8
Vagrantfile
vendored
8
Vagrantfile
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user