Skip to main content

Produces RPMs for FLP packages out of aliBuild ouput

Project description

f2r

Command line tool to create RPMs out of aliBuild output

Prerequisites

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

f2r-2.7.0-py3-none-any.whl (27.6 kB view hashes)

Uploaded Python 3

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