Skip to content

Fixmetal/ocp-channel-information

 
 

Repository files navigation

OpenShift Channel Information

This application shows current available versions in a specified channel (stable, fast or candidate). It can be run either as a command-line script or as a Flask API.

Running as a Command-Line Script

Prerequisites

Make sure you have Python installed on your machine.

Usage

python app.py --channel <channel> --version <version>

Replace with either 'fast', 'stable', or 'candidate', and with the desired OpenShift version (e.g., '4.14', '4.12', etc.).

Running as a Flask API

Prerequisites

Make sure you have Python and Flask installed on your machine.

Usage

python app.py --api

The Flask app will run on http://127.0.0.1:5000. You can access the OpenShift version information API using the following endpoint: http://127.0.0.1:5000/api/upgrades_info?channel=&version=

Replace with either 'fast', 'stable', or 'candidate', and with the desired OpenShift version (e.g., '4.14', '4.12', etc.).

Running with Docker

Prerequisites

Make sure you have Docker installed on your machine.

Build Docker Image

docker build -t openshift-channel-app .

Run Docker Container

Run as Command-Line Script

docker run openshift-channel-app --channel <channel> --version <version>

Run as Flask API

docker run -p 5000:5000 openshift-channel-app --api

Access the API at: http://127.0.0.1:5000/api/upgrades_info?channel=&version=

Replace with either 'fast', 'stable', or 'candidate', and with the desired OpenShift version (e.g., '4.14', '4.12', etc.).

Example

docker run openshift-channel-app --channel fast --version 4.14

This command will display the available versions for the specified channel.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.4%
  • Dockerfile 8.6%