Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/softwarefactory-project/DLRN
DO NOT send Pull Requests here, send reviews to
https://github.com/softwarefactory-project/DLRN
Last synced: 2 months ago
JSON representation
DO NOT send Pull Requests here, send reviews to
- Host: GitHub
- URL: https://github.com/softwarefactory-project/DLRN
- Owner: softwarefactory-project
- License: apache-2.0
- Created: 2014-08-01T13:34:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T14:38:57.000Z (9 months ago)
- Last Synced: 2024-04-24T17:49:20.953Z (9 months ago)
- Language: Python
- Homepage: https://softwarefactory-project.io/r/#/q/project:DLRN
- Size: 6.1 MB
- Stars: 28
- Watchers: 9
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - softwarefactory-project/DLRN - DO NOT send Pull Requests here, send reviews to (Python)
README
====
DLRN
====DLRN builds and maintains yum repositories following OpenStack
upstream commit streams. (DLRN is not an acronym or an abbreviation,
and it can be pronounced "dee el arr en".)Documentation is available at
http://dlrn.readthedocs.org/en/latest/Setup
-----.. code-block:: shell-session
# yum install git createrepo python-virtualenv mock gcc \
redhat-rpm-config rpmdevtools httpd libffi-devel \
openssl-devel yum-utils openldap-devel krb5-develAdd the user you intend to run as to the mock group and login again.
.. code-block:: shell-session
$ git clone https://github.com/softwarefactory-project/DLRN.git
If you want to serve the built packages and the status reports, enable the
httpd service, and then either add a section in the server configuration to
map a URL to the data directories, or create a symbolic link:.. code-block:: shell-session
# systemctl start httpd
# cd /var/www/html
# ln -s /repos .Preparing
---------.. code-block:: shell-session
$ cd DLRN
$ virtualenv ../dlrn-venv
$ . ../dlrn-venv/bin/activate
$ pip install --upgrade pip
$ pip install -r requirements.txt
$ python setup.py developEdit ``projects.ini`` if needed.
Bootstrapping
-------------Some of the projects require others to build. As a result, use the
special option ``--order`` to build in the order computed from the
BuildRequires and Requires fields of the spec files when you bootstrap
your repository... code-block:: shell-session
$ dlrn --order
When using this special option, a special variable ``repo_bootstrap``
is defined in the specs, with a value of 1. You can use this variable if
needed, to break dependency loops between packages. For example:.. code-block:: spec
%if 0%{?repo_bootstrap} == 0
BuildRequires: package-with-circular-dependency
%endifRunning
-------Once all the packages have been built once, you can get back to build
the packages in the order of the timestamps of the commits... code-block:: shell-session
$ dlrn
Troubleshooting
---------------If you interrupt dlrn during mock build you might get an error
.. code-block:: shell-session
OSError: [Errno 16] Device or resource busy: '/var/lib/mock/dlrn-fedora-x86_64/root/var/cache/yum'
Solution is to clear left-over bind mount as root:
.. code-block:: shell-session
# umount /var/lib/mock/dlrn-fedora-x86_64/root/var/cache/yum
Other requirements
------------------If the git clone operation fails for a package, DLRN will try to remove
the source directory using sudo. Please make sure the user running DLRN
can run ``rm -rf /path/to/dlrn/data/*`` without being asked for a password,
otherwise DLRN will fail to process new commits.