Giter Site home page Giter Site logo

gitter-badger / manageiq-rpm_build Goto Github PK

View Code? Open in Web Editor NEW

This project forked from manageiq/manageiq-rpm_build

0.0 0.0 0.0 95 KB

Code to build RPMs for ManageIQ appliances and container images

License: Apache License 2.0

Dockerfile 9.02% Ruby 76.60% Shell 14.38%

manageiq-rpm_build's Introduction

ManageIQ RPM Build

This repository contains code to build RPMs for ManageIQ appliances and container images:

  • Clone source repos
  • Run bundle install, compiles assets for UI and a few other tasks needed
  • Create tarballs
  • Build RPMs (locally in the container image or in Copr)

Steps

  1. Build container image

  2. Prepare configuration

    • Create a local directory with an options.yml with the configuration changes you want to make, then when running the container image, mount that directory with -v <dir>:/root/OPTIONS.
    • If overriding the NPM registry, set the npm_registry key in the options.yml.
    • If building RPMs in Copr,
      • set the rpm.repo_name key in the options.yml.
      • run the container image with -v <copr token file>:/root/.config/copr.
  3. Start the container image

    docker run -it <image>

  4. Run the script

    • Run bin/build.rb, optionally overriding git ref (branch or tag) and release type

      bin/build.rb --git-ref jansa
      
      bin/build.rb --build-type release --git-ref jansa-1-alpha1
      

Alternatively, the build can be started directly by passing build to the docker run command:

docker run -it <miq-rpm_build image> build [--build-type <type>] [--git-ref <ref>]

The container will exit after the build is completed. Use -v <dir>:/root/BUILD to mount a volume, if artifacts need to be accessed later.

Artifacts

manageiq-core, manageiq-gemset and manageiq-appliance .tar.gz will be created in ~/BUILD/rpm_spec/

manageiq-* RPMs will be created in ~/BUILD/rpms if built locally

License

This code is available as open source under the terms of the Apache License 2.0.

manageiq-rpm_build's People

Contributors

fryguy avatar simaishi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.