MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

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 Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Azure Devops Pipeline YAML Example

This page shows a minimal Azure Pipelines YAML file that builds a Docker image with the Docker@2 task on a Microsoft-hosted Ubuntu agent each time code is…

Read More

Docker Tutorials: Docker Image – Example and Sample Programs of Dockerfile

This page collects sample Dockerfiles that build an Ubuntu-based Apache image and show how CMD, ENTRYPOINT, EXPOSE, ARG, ENV, COPY and USER behave. Below the examples you…

Read More

Kubernetes: Pull an Image from a Private Registry using Yaml and Helm File

Kubernetes pulls images from a private registry using a kubernetes.io/dockerconfigjson Secret. A Pod references that Secret through imagePullSecrets, either directly or through its ServiceAccount. This page shows…

Read More

Docker Training Agenda: A Hands-On Learning Path from Containers to Registries and Networking

This revised Docker training agenda turns the original outline into a practical, modern learning path for beginners and early-career DevOps engineers. It maps each module to hands-on outcomes, core commands, and common implementation decisions.

Read More

Install Sonatype Nexus with Docker: RM2/RM3 Commands, Validation Steps, and Important Caveats

A structured, production-minded rewrite of the original 2016 Docker setup for Sonatype Nexus Repository Manager 2 and 3. Includes command examples, a workflow diagram, and clear warnings about outdated tags/endpoints.

Read More

Virtualization in DevOps: Using Vagrant, Docker, and Cloud Platforms Together

This guide explains how VM-based workflows, containers, and cloud platforms complement each other in DevOps. It includes a practical workflow, trade-off table, and command examples for day-to-day use.

Read More
Subscribe
Notify of
guest
2 Comments
Newest
Oldest Most Voted
Puja kushwaha
Puja kushwaha
1 month ago

Deploying an application from GitHub through the OpenShift console is a useful way to learn the build process. Before starting, check that the repository is accessible and includes the files and dependencies the build expects. Reviewing build logs helps identify missing packages or incorrect settings early. After deployment, verify pod readiness, application logs, and the generated route. Keeping the source branch and build settings clear makes future updates easier to repeat and troubleshoot.

Skylar Bennett
Skylar Bennett
5 months 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.

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