Skip to content

Deploying a Flask app to OpenShift by using s2i build

Notifications You must be signed in to change notification settings

edwin/hello-world-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

A Flask app on top of Openshift 4

Create a very simple hello world Python app with Flask framework, and deploy into Openshift 4.

Build and Push to Docker Hub from Openshift 4

$ oc new-build . --name=hello-world-python --to-docker --to=docker.io/dockerusername/hello-world-python

$ oc start-build hello-world-python --from-dir=. --follow --wait

Deploy to OpenShift 4

$ oc new-app . --docker-image=dockerusername/hello-world-python --name=hello-world-python-app

Expose a Secure URL for this Flask app

$ oc create route edge --service=hello-world-python-app

About

Deploying a Flask app to OpenShift by using s2i build

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages