Skip to content

Commit

Permalink
Added a requirements file, and updated README.
Browse files Browse the repository at this point in the history
  • Loading branch information
arjuhe authored and nocturnalastro committed Jun 14, 2024
1 parent 72ff6be commit 475aeaa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
21 changes: 19 additions & 2 deletions hack/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# generate_os_release_images.py

## Requriments
## Requirements

```shell
pip install semver beautifulsoup4
python3 -m pip install -r ./requirements.txt
```

## Usage
Expand All @@ -13,3 +13,20 @@ Here's an example for multiple different ocp versions:
```shell
./generate_os_release_images.py -a x86_64 -v 4.12.29 -v 4.11.30 -v 4.13.2 -v 4.14.12 -v 4.15.1
```

## Sample Output
```yaml
os_images:
- cpu_architecture: x86_64
openshift_version: '4.14'
rootfs_url: https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.14/4.14.15/rhcos-live-rootfs.x86_64.img
url: https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.14/4.14.15/rhcos-4.14.15-x86_64-live.x86_64.iso
version: 414.92.202402261929-0
release_images:
- cpu_architecture: x86_64
cpu_architectures:
- x86_64
openshift_version: '4.14'
url: quay.io/openshift-release-dev/ocp-release:4.14.30-x86_64
version: 4.14.30
```
7 changes: 7 additions & 0 deletions hack/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
lxml
requests
bs4
semver
beautifulsoup4
pyyaml

0 comments on commit 475aeaa

Please sign in to comment.