Skip to main content

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

# yum install git createrepo python-virtualenv mock gcc \
              redhat-rpm-config rpmdevtools httpd libffi-devel \
              openssl-devel yum-utils

Add the user you intend to run as to the mock group and login again.

$ 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:

# systemctl start httpd
# cd /var/www/html
# ln -s <datadir>/repos .

Preparing

$ cd DLRN
$ virtualenv ../dlrn-venv
$ . ../dlrn-venv/bin/activate
$ pip install --upgrade pip
$ pip install -r requirements.txt
$ python setup.py develop

Edit 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.

$ 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:

%if 0%{?repo_bootstrap} == 0
BuildRequires: package-with-circular-dependency
%endif

Running

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.

$ dlrn

Troubleshooting

If you interrupt dlrn during mock build you might get an error

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:

# 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.

Metadata

Release files for DLRN 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DLRN 0.4.0
File Size Uploaded
DLRN-0.4.0.tar.gz 476.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DLRN 0.4.0
File Interpreter ABI Platform
DLRN-0.4.0-py2-none-any.whl Python 2 none any Details

Total release size: 580.7 kB

Release files / DLRN-0.4.0.tar.gz

Download URL DLRN-0.4.0.tar.gz
Size 476.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f12edfcfdb148ba639f62056803f2c79e59927aa8d492ac2f85f40831aade92f
BLAKE2b-256 checksum
How to use checksums
5d0e72ad8184221c8a0a66db9f3dd543f959ad42d6b04886d9afa66db884c8ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / DLRN-0.4.0-py2-none-any.whl

Download URL DLRN-0.4.0-py2-none-any.whl
Size 103.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
cd5561e52220f20de4b82210332f8d99c73470411ce5cce93ba00424f47dfb9e
BLAKE2b-256 checksum
How to use checksums
48e22d1aa554dcdb3cf3a6b938e207160f2b91c9ab035f8a1f7b1f02f19c716b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.26.1

2 release files

0.26.0

2 release files

0.24.0

2 release files

0.23.0

2 release files

0.22.0

2 release files

0.21.0

2 release files

0.20.0

2 release files

0.19.0

2 release files

0.18.3

2 release files

0.18.1

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.3

2 release files

0.15.1

2 release files

0.14.0

2 release files

0.13.2

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

This release

0.4.0 This release

2 release files

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page