Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nak3/openshift-rpmbuild

The script to build openshift RPM/SRPM packages
https://github.com/nak3/openshift-rpmbuild

Last synced: 30 days ago
JSON representation

The script to build openshift RPM/SRPM packages

Awesome Lists containing this project

README

        

openshift-rpmbuild
==================

The script to build openshift RPM/SRPM packages

Tested Environment
-----
* CentOS release 6.6 (Final)
* Red Hat Enterprise Linux Server release 6.6 (Santiago)

Quick start
----------

##### 1. Set up repository for build requirements
```
cat > /etc/yum.repos.d/openshift-origin-nightly-deps.repo < specify to search OpenShift source code home directory. default value is current direcotry
````

Example debug steps
---------

##### 1. buildall RPM packages

````
./openshift-rpmbuild.sh -r buildall

.... snip ...

BUILD RESULT
================
success to build: 58
-----------------------------
openshift-origin-cartridge-mock-plugin ....

failed to build: 3
-----------------------------
openshift-origin-console rubygem-openshift-origin-admin-console rubygem-openshift-origin-console

````

##### 2. Check above results and build speific package

````
./openshift-rpmbuild.sh -r openshift-origin-console

.... snip ...

error: Failed build dependencies:
rubygem-openshift-origin-console is needed by openshift-origin-console-1.16.3-1.el6.noarch
````

##### 3. Check why did your build fail

Extra: Use Dokcer for package build
---------

###### Use docker file in docker

````
cd docker && docker build -t openshift_build .
````

````
docker run -t -i openshift_build /bin/bash
````

You can find rpm packages in `/tmp/tmp.repos/RPMS/`