OSBS notes¶
Fedora’s Openshift Build System¶
Upstream¶
Development Environment
Documentation¶
Deployment¶
Fedora Infrastructure ansible:
- osbs cluster playbook
- osbs atomic-reactor role
- osbs-client role
- osbs-common
- osbs-namespace
- osbs-on-openshift
- ansible-ansible-openshift-ansible role
Fedora Infrastructure SOP:
Packages¶
Misc¶
Rebuild of container buildroot
$ docker build -t buildroot --rm --no-cache /etc/osbs/buildroot
Update packages on target using ansible
$ ansible $target -m package -a "name=koji-containerbuild state=latest"
Check for build running in openshift
$ oc login
$ oc status
$ oc -n osbs-fedora describe build <my-build>
Get builds for a namespace
$ oc -n namespace get build
Cancel a build
$ oc -n namespace cancel-build <my-build>
Clean old builds
$ oc adm prune builds --keep-complete=2 --keep-failed=1 --keep-younger-than=24h0m0s --orphans --confirm
Docker insecure-registry : To add the insecure registry need to edit the /etc/sysconfig/docker and modify the OPTIONS parameter