<commit_before># OSBS

[![Code Health](https://landscape.io/github/DBuildService/osbs/master/landscape.svg?style=flat)](https://landscape.io/github/DBuildService/osbs/master)
[![Build Status](https://travis-ci.org/DBuildService/osbs.svg?branch=master)](https://travis-ci.org/DBuildService/osbs)

Python module and command line client for OpenShift Build Service.

It is able to query OpenShift v3 for various stuff related to building images. It can initiate builds, list builds, get info about builds, get build logs... All of this can be done from command line and from python.

## Configuration

You should set up a configuration file for your instance, sample:

```
[general]
build_json_dir = /usr/share/osbs/

[default]
openshift_uri = https://host:8443/
# if you want to get packages from koji (koji plugin in dock)
# you need to setup koji hub and root
# this sample is for fedora
koji_root = http://koji.fedoraproject.org/
koji_hub = http://koji.fedoraproject.org/kojihub
# in case of using artifacts plugin, you should provide a command
# how to fetch artifacts
sources_command = fedpkg sources
# from where should be images pulled and where should be pushed?
registry_uri = your.registry.example.com
verify_ssl = false
build_type = simple
```

## Issuing a build

This is how simple build could look:
```
$ osbs build -g http://path.to.gitrepo.with.dockerfile/ -c image-name -u your-nick
```

## Deploying OpenShift Build System

We have [a documentation](https://github.com/DBuildService/osbs/blob/master/docs/osbs_instance_setup.md) how you can setup your own instance.
<commit_msg>Fixed GitHub links for README.md badges<commit_after># OSBS

[![Code Health](https://landscape.io/github/DBuildService/osbs/master/landscape.svg?style=flat)](https://landscape.io/github/DBuildService/osbs/master)
[![Build Status](https://travis-ci.org/DBuildService/osbs-client.svg?branch=master)](https://travis-ci.org/DBuildService/osbs-client)

Python module and command line client for OpenShift Build Service.

It is able to query OpenShift v3 for various stuff related to building images. It can initiate builds, list builds, get info about builds, get build logs... All of this can be done from command line and from python.

## Configuration

You should set up a configuration file for your instance, sample:

```
[general]
build_json_dir = /usr/share/osbs/

[default]
openshift_uri = https://host:8443/
# if you want to get packages from koji (koji plugin in dock)
# you need to setup koji hub and root
# this sample is for fedora
koji_root = http://koji.fedoraproject.org/
koji_hub = http://koji.fedoraproject.org/kojihub
# in case of using artifacts plugin, you should provide a command
# how to fetch artifacts
sources_command = fedpkg sources
# from where should be images pulled and where should be pushed?
registry_uri = your.registry.example.com
verify_ssl = false
build_type = simple
```

## Issuing a build

This is how simple build could look:
```
$ osbs build -g http://path.to.gitrepo.with.dockerfile/ -c image-name -u your-nick
```

## Deploying OpenShift Build System

We have [documentation](https://github.com/DBuildService/osbs-client/blob/master/docs/osbs_instance_setup.md) how you can setup your own instance.

{'fraction_non_alphanumeric': 0.10330961954840705, 'fraction_numerical': 0.003093102381688834, 'mean_word_length': 4.663747810858144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1580430', 'n_tokens_mistral': 1009, 'n_tokens_neox': 984, 'n_words': 344}