Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhos-infra/patch-components
Patching components source code and repackaging in RPMs
https://github.com/rhos-infra/patch-components
ansible infrared-plugin patch repackge rpm
Last synced: 12 days ago
JSON representation
Patching components source code and repackaging in RPMs
- Host: GitHub
- URL: https://github.com/rhos-infra/patch-components
- Owner: rhos-infra
- Created: 2017-02-07T08:57:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-20T13:46:19.000Z (5 months ago)
- Last Synced: 2024-08-20T15:51:17.591Z (5 months ago)
- Topics: ansible, infrared-plugin, patch, repackge, rpm
- Language: Shell
- Size: 881 KB
- Stars: 0
- Watchers: 8
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Patch-components
Allows to repackage RPMs with source code directly from Gerrit or local repo.
### How to use this project as an ansible playbook
Create virtual environment:
virtualenv venv
source venv/bin/activate
pip install ansibleClone the component from to ~/ and cherry-pick the patch:
git clone https:///gerrit/ ~/
cd ~/
git fetch https:///gerrit/ refs/changes/xy/abcde/x && git checkout FETCH_HEADRun:
ansible-playbook -i hosts main.yml --extra-vars @params.yml -vvvv
### Pre-release version patching
Creation of rpm is allowed with per-released version as well. Make sure to increment the pre_rel_version
variable located in roles/patch_rpm/vars/main.yml when version is released to avoid failure in patching.### Result
The project will generate one or more RPMs in the following path: dist-git/
### How to use this as an InfraRed plugin
Clone the component from to ~/ and cherry-pick the patch as described in the section
"How to use this project as an ansible playbook". Create virtual environmenti and install infrared:git clone https://github.com/redhat-openstack/infrared.git
cd infrared
virtualenv venv
source venv/bin/activate
pip install -e .Add patch-components as a plugin:
infrared plugin add https://github.com/rhos-infra/patch-components.git
Run:
infrared patch-components --host-ip A.B.C.D --host-username --component-name --host-key_file ~/.ssh/id_rsa --component-version### Contribute
Contributions are made via GerritHub. Do not submit Pull Requests.