Public Repository

Last pushed: 2 years ago
Short Description
This repository helps you create a simple container to run a Python2.7 + Flask application for openshift, in a docker container.
Full Description

Run an OpenShift based + Py2.7 + Flask in a Docker container

This repository helps you create a simple container to run a Python2.7 + Flask application for openshift, in a docker container.

Source code: https://github.com/lrivallain/openshift-py (python 2.7 method)

Running on Docker

Install Docker: http://docker.io

Create an account at https://www.openshift.com

Create a python application

rhc app create myflaskapp python-2.7

Get the same image from docker public repository

docker pull lrivallain/openshift-py2.7

And run a container based on this image

cd myflaskapp
docker run -v `pwd`:/data -p 8080:8080 -ti lrivallain/openshift-py2.7

That's it, you can now checkout your application at:

http://127.0.0.1:8080

Running on Openshift

Push change to openshift

git push

That's it, you can now checkout your application at:

http://myflaskapp-$yournamespace.rhcloud.com
Docker Pull Command
Owner
lrivallain

Comments (0)