Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Openshift: Lab 2 – Install an application from source code in a GitHub repository using the OpenShift web console

What this lab teaches

The lab teaches how to use the OpenShift web console to deploy an application directly from source code stored in GitHub. The example uses OpenShift’s Source-to-Image, also called S2I, process. OpenShift downloads the source code, builds a container image, creates pods, creates a service, and optionally creates a route so the application can be accessed from a browser.

Prerequisites

Before doing this lab, the learner should understand:

Required KnowledgeWhy It Matters
OpenShift and Kubernetes relationshipOpenShift runs applications on Kubernetes
Public Git repositories such as GitHubSource code is pulled from GitHub
OpenShift web console accessThe lab uses the GUI, not CLI
Administrator and Developer perspectivesThe lab uses the Developer view and +Add flow

Application used in the lab

ItemValue
Application typePython web application
Builder imagePython 3.9
Git repositoryhttps://github.com/openshift-instruqt/blog-django-py
Deployment resource typeDeployment
RouteEnabled

Complete lab flow

StepActionDetails
1Open Developer SandboxStart from the Developer Sandbox entry page
2Log inUse Red Hat account credentials
3Open OpenShift web consoleGo into the OpenShift console
4Click +AddUse the left-side menu
5Search for PythonIn the Developer Catalog / All Services page
6Select PythonChoose the Python service/template
7Click CreateOpens the Source-to-Image application form
8Select Python 3.9The lab specifically uses Python 3.9 builder image
9Enter Git repo URLUse the GitHub repo above
10Review auto-filled fieldsOpenShift fills Application and Name fields
11Set resource typeChoose Deployment
12Enable routeSelect Create a route to the Application
13Click CreateStarts the build and deployment process
14Watch TopologyApp appears as a circle in Topology view
15Wait for build completionLight blue during build, dark blue when running
16Open applicationClick the external/open-url icon on the app graphic
17Delete applicationRight-click the application in Topology and choose Delete Application
18Confirm deletionType the application name when prompted

What OpenShift creates automatically

When you complete the form and click Create, OpenShift automatically creates several resources:

ResourcePurpose
Build / S2I processBuilds container image from Git source
Container imageApplication runtime image
PodRuns the application container
DeploymentManages the application rollout
ServiceProvides internal cluster networking
RouteProvides browser-accessible external URL

Important concepts from the lab

ConceptExplanation
Source-to-ImageOpenShift builds a container image directly from source code
Developer CatalogWeb console area used to choose app templates/services
Builder imageBase/runtime image used to build the application
Git Repo URLSource location OpenShift pulls from
DeploymentKubernetes/OpenShift object that manages running pods
RouteOpenShift object that exposes the app externally
Topology viewVisual view of running applications in OpenShift

CLI equivalent of the same lab

The PDF uses the web console, but the rough CLI equivalent would be:

oc new-project lab2-python
oc new-app python:3.9~https://github.com/openshift-instruqt/blog-django-py --name=blog-django-py
oc expose svc/blog-django-py
oc get route
Code language: JavaScript (javascript)

Then open the route URL in your browser.

To delete it:

oc delete all -l app=blog-django-py
oc delete route blog-django-py
Code language: JavaScript (javascript)

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Best DevOps Tools in 2024

here’s a clear, structured breakdown of the Best DevOps Tools (grouped by categories), so you can use it for learning, training, or posts. 🚀 Best DevOps Tools…

Read More

OpenShift Tutorial – Deploy and Access Your First Applications using OpenShift Local

How to install oc? OpenShift: How to Install OpenShift CLI oc How to login? Login to the Openshift using Web Console and CLI using oc Copy the admin…

Read More

OpenShift Lab 14: Setting Up and Using OpenShift Serverless Functions on OpenShift Local

Lab Objective In this lab, you will install and use OpenShift Serverless Functions on OpenShift Local. You will create a simple Node.js serverless function, deploy it to…

Read More

OpenShift Lab 13: Deploy a Java Spring Boot Application with MySQL Using the OpenShift Web Console

Lab Objective In this lab, you will deploy a Java Spring Boot application on OpenShift using the OpenShift web console. You will deploy two components: The Java…

Read More

OpenShift Lab 12: Deploy an Application from an Existing Container Image Using the OpenShift Web Console

Lab Objective In this lab, you will deploy an application on OpenShift from an existing container image. This lab is different from building an application from source…

Read More

OpenShift: How to Install OpenShift CLI oc

Option – 1 – REDHAT Websites URL – https://access.redhat.com/downloads/content/290/ver=4.18/rhel—9/4.18.11/x86_64/product-software Option – 2 – OKD Websites The OKD (Origin Community Distribution of Kubernetes for OpenShift) is the open-source…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Skylar Bennett
Skylar Bennett
18 days ago

The lab demonstrates how to deploy applications directly from a GitHub repository using the OpenShift web console, but it could also discuss considerations that become important in long-term application delivery. In production setups, teams typically implement branch-based deployment strategies, automate image scanning, and enforce approval workflows before promoting changes to higher environments. Adding guidance on integrating these source-based deployments with GitOps practices and maintaining deployment consistency across clusters would provide readers with a more complete operational perspective.

1
0
Would love your thoughts, please comment.x
()
x