Skip to main content

Build packages

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DLRN-0.10.0.tar.gz (515.6 kB view details)

Uploaded Source

Built Distribution

DLRN-0.10.0-py2-none-any.whl (141.7 kB view details)

Uploaded Python 2

File details

Details for the file DLRN-0.10.0.tar.gz.

File metadata

  • Download URL: DLRN-0.10.0.tar.gz
  • Upload date:
  • Size: 515.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.14.2 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.5

File hashes

Hashes for DLRN-0.10.0.tar.gz
Algorithm Hash digest
SHA256 e3cf42c1eb4f66ac10607391952cf8f2530ec5273efbd18e4913c4570c43831d
MD5 6d40ba3810cb7e525f4ed84b3450b546
BLAKE2b-256 56cb1cf9a20253092622a7c9716206c8869c5b6f3715e1fb442cc863df3553b5

See more details on using hashes here.

File details

Details for the file DLRN-0.10.0-py2-none-any.whl.

File metadata

  • Download URL: DLRN-0.10.0-py2-none-any.whl
  • Upload date:
  • Size: 141.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.14.2 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.5

File hashes

Hashes for DLRN-0.10.0-py2-none-any.whl
Algorithm Hash digest
SHA256 d7073f0b3def8be8a93a4a9f8657adb312f4509297c2e8a4e31be9a6f05bacff
MD5 2577991a9b4ddfcf4914fbac6f4f1638
BLAKE2b-256 1fefac815c5cb235edf62518c0ad9b888a347ad140eb40b8013e9989162a9e2b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page