Produces RPMs for FLP packages out of aliBuild ouput
Project description
f2r
Command line tool to create RPMs out of aliBuild output
Prerequisites
- aliBuild
- environment Modules 4.3 or higher, RPM is available from this S3 location
- Optional: To enable S3 support you need to create a config file under
~/.s3cfg
, see CERN IT instructions
Installation
python3 -m pip install f2r
OR
You can use following Ansible role from system-configration that handles also "Prerequisites".
Quickstart
Build packages using aliBuild
, eg:
aliBuild build O2Suite --defaults o2-dataflow --always-prefer-system
Then, run alienv
as indicated by aliBuild
in order to create modulefiles:
alienv enter O2Suite/latest-o2-dataflow
And create RPMs providing same package and version as to alienv
:
f2r generate --package O2Suite --version latest-o2-dataflow
Validate created RPMs (this required sudo
):
f2r validate
Create YUM repo:
f2r repo
and sync it to S3:
f2r sync
CLI options
Global options:
-h, --help show this help message and exit
--dry-run do a dry run, skipping fpm execution
--target-rpm-dir TARGET_RPM_DIR
path to store RPMs in (=/tmp/o2_rpms by default)
--release-tag RELEASE_TAG
Release tag, this is mostly to provide correct dir
structure
--architecture ARCHITECTURE
OS architecture
--log-level LOG_LEVEL
Set log level (DEBUG, INFO, WARN, ERROR)
Generate options:
--package PACKAGE package name (as recipe name in aldiist)
--version VERSION package version (as in modulefile: X.Y.Z-A)
--ali-prefix ALI_PREFIX
path to alibuild dir
--skip-deps Generate single RPM without dependencies
Sync options:
--pull Pulls instead of pushing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
f2r-2.4.7.tar.gz
(10.7 kB
view hashes)
Built Distribution
f2r-2.4.7-py3-none-any.whl
(27.4 kB
view hashes)