73 Commits

Author SHA1 Message Date
Chenxiong Qi
e673f690a9 Add python3-celery to Vagrantfile
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-03-03 14:48:47 -05:00
mprahl
1dcb9fc753 Upgrade Vagrant to use Fedora 31 2019-11-06 17:43:16 -05:00
Mike Bonnet
86c85825ee update container base images to Fedora 31
Also update the uid management in the frontend image to be more consistent with
best practices, as demonstrated by:

https://github.com/RHsyseng/container-rhel-examples/tree/master/starter-arbitrary-uid

This allows the dependency on nss_wrapper to be dropped.
2019-11-01 12:04:36 -07:00
Chenxiong Qi
68fe2b69f1 Allow to run tests with PostgreSQL inside Vagrant machine
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2019-07-19 06:34:08 +08:00
mprahl
c1e2a5b0af Unpin the libmodulemd RPMs 2019-05-16 11:51:38 +00:00
mprahl
88f8021d94 Add krb5-devel as a dependency in Vagrant to fix the installation of Python dependencies 2019-05-13 13:40:37 -04:00
mprahl
14098cea08 Migrate to libmodulemd v2
This also moves the methods load_mmd and load_mmd_file to
module_build_service.utils.general.

This also removes some MSE unit tests with a mix of positive and
negative streams since this is not supported in libmodulemd v2. The
user will be presented with a syntax error if they try to submit
such a modulemd file.
2019-05-13 13:40:37 -04:00
mprahl
bc2a1e8d3c Fix the unit tests 2019-04-03 14:40:52 -04:00
mprahl
63bccb28ff Use Fedora 29 when developing with Vagrant 2019-04-02 14:35:27 +00:00
Chenxiong Qi
d6407ac5fb Make directory /etc/module-build-service instead of link
rhpkg could be installed inside Vagrant machine to run MBS with internal
infra. rhpkg installs config file into /etc/module-build-service, which
could fail with following error if /etc/module-build-service is a link
to /opt/module_build_service/conf.

error: unpacking of archive failed on file
/etc/module-build-service/redhat.py;5be25ac4: cpio: chown

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2018-11-07 12:04:22 +08:00
Chenxiong Qi
8aab2688e1 Fix incorrect username appended to mock group
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2018-11-07 12:04:13 +08:00
Chenxiong Qi
eccb239dd4 Refine Vagrantfile
Major change is to create a dedicated Python virtual environment for MBS
instead of installing required packages (listed in requirements) into
system site-packages directory.

This would be convenient for developer to install other Python packages
via package manager, for example to install rhpkg. I found an issue when
I installed rhpkg in original Vagrant machine, that is whole kobo
package is installed via pip, and `dnf install rhpkg' will result in
python2-kobo is installed and then it fails to import module
kobo.rpmlib. The fix is I have to install python2-kobo-rpmlib via dnf
again. With this change, this issue could be avoided. Two environments
are separated rather than mixed together.

Another two minor improvements base on this change are, after logging
into the machine, 1) the virtual environment is activated automatically,
and 2) change working directory to /opt/module_build_service.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2018-11-05 17:16:19 +08:00
Jan Kaluza
0d66adbc17 Add list of built RPMs to architecture specific modulemd files in CG builds. 2018-09-12 07:45:46 +02:00
mprahl
0a9119f720 Use the latest libmodulemd in Vagrant 2018-05-21 12:21:29 -04:00
mprahl
ee3ad85eb8 Workaround to get manage.py working in Vagrant 2018-04-04 10:50:44 -04:00
mprahl
bed9bf7a87 Remove the dependency on python-systemd 2018-04-03 09:58:57 -04:00
mprahl
8dfdeaf33b Use the latest libmodulemd in the Vagrant environment 2018-04-03 09:58:57 -04:00
mprahl
26d49f23ec Install python-solv in Vagrant 2018-04-03 09:58:57 -04:00
mprahl
0c7fab3f65 Update Vagrant to use Fedora 27 2018-04-03 09:58:57 -04:00
mprahl
f0852d9009 Port to libmodulemd and support v2 modulemd without module stream expansion 2018-04-03 09:58:57 -04:00
Yash Nanavati
1d3fd2af64 Minor changes towards Python 3 Compatability 2018-02-28 09:01:51 -05:00
Ralph Bean
0da5def20f Merge #839 Move the Vagrant synced folder to /opt/module_build_service 2018-01-22 08:02:20 +00:00
mprahl
55d07aa8f5 Use Koji repos if possible during local builds 2018-01-18 17:02:03 -05:00
mprahl
ff18d76dc4 Move the Vagrant synced folder to /opt/module_build_service 2018-01-18 14:01:58 -05:00
mprahl
bc4a612b38 Stop using site_packages when running tox 2018-01-08 08:59:14 -05:00
mprahl
c0ec0f82c1 Remove urlgrabber as a dependency 2018-01-03 10:21:37 -05:00
mprahl
5d03dda637 Install python-urlgrabber to allow local builds
See https://github.com/rpm-software-management/urlgrabber/pull/5 for the backstory.
2017-11-13 15:27:12 -05:00
mprahl
0e401cdab9 Default dev configuration to build modules locally 2017-11-13 14:09:07 -05:00
mprahl
fe5a749251 Remove outdated PDC and PDC-Updater instructions 2017-11-13 14:00:50 -05:00
mprahl
0a1c270ff8 Don't require Kerberos cache since we can't even use stage Koji to build modules anymore 2017-11-13 14:00:50 -05:00
Ralph Bean
0e9ccb1895 Remove old SSL config options.
We used to do x509 authn a long time ago.  We have since stopped doing
that, but we kept all of thise confusing SSL/TLS support stuff.

This removes all that, and fixes #685.
2017-10-04 11:37:17 +02:00
mprahl
b104850fd7 Fix Vagrant SSHFS issue 2017-09-19 14:07:12 -04:00
mprahl
3821847829 Use SSHFS to sync folders in Vagrant with the libvirt provider 2017-09-11 16:39:03 -04:00
mprahl
b2f07c13e0 Update Vagrant box to Fedora 26 and include some fixes 2017-09-11 16:31:48 -04:00
Jan Kaluza
1d8bc3e33a Use concurrent.futures instead of our own ThreadPool implementation 2017-02-21 08:02:50 +01:00
Matt Prahl
219da6c760 Have the Kerberos ticket be located at /tmp/mbs-krbcc instead of /var/tmp/krbcc 2017-02-17 17:16:04 -05:00
Filip Valder
13a6345548 config values for increasing VM's memory/cpu 2017-02-01 20:23:41 +01:00
Filip Valder
c51adf1796 get rid of 'WARNING - Cannot find qpid python module. Make sure you have python-qpid installed.' 2017-01-18 16:24:28 +01:00
Matt Prahl
90bf826c9a Fix port forwarding in Vagrant 2017-01-12 13:01:49 -05:00
Filip Valder
5ea74fec20 fix scheduler (ensure existing entry points, fix mbsproducer->mbspoller) 2017-01-11 15:23:52 +01:00
Filip Valder
25503a0b7b separate script section for running services; forward communication to 127.0.0.1 2017-01-05 13:46:43 +01:00
Filip Valder
d7e74b5a0f hosts record for fedmsg-relay 2017-01-05 13:45:35 +01:00
Filip Valder
7762fb7adb communication with pdc-updater devel + docs 2016-12-16 12:42:16 +01:00
Filip Valder
c02eb754c5 install test-requirements.txt in docker/vagrant (use the same way) 2016-12-16 12:38:37 +01:00
Matt Prahl
f2a02027a9 Fix Vagrant 2016-12-15 16:27:17 -05:00
Matt Prahl
261549c8c2 Migrate scheduler to be run by fedmsg-hub 2016-12-15 16:27:15 -05:00
Matt Prahl
41187110b5 Add Vagrant support to submit_build.py 2016-12-15 16:16:24 -05:00
Matt Prahl
e9d0ec898b Use test database instead of in-memory database for all tests for consistency 2016-12-12 09:00:44 -05:00
Filip Valder
c6e5c38ae3 fix: set env vars at the very beginning and source them immediately -> results in affecting not only bash but all vagrant's environment 2016-12-09 13:27:06 +01:00
Matt Prahl
15b5cf11b9 Fix default path for pki_dir 2016-12-07 09:24:33 -05:00