Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
/ kompose-flask Public archive

Project to be used with Kompose (Kubernetes) to generate an Openshift project. The project will run a flask application using uwsgi and it will be exposed using Nginx. Also includes Postgresql and Redis Images

License

Notifications You must be signed in to change notification settings

renefs/kompose-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kompose-Flask

Project to be used with Kompose (Kubernetes) to generate an Openshift project. The project will run a flask application using uwsgi and it will be exposed using Nginx. Also includes Postgresql and Redis Images.

Requirements

Usage

First method: Generate and upload Openshift yaml template

kompose -f docker-compose-prod.yml --provider openshift convert -o template.yaml

oc create -f template.yaml

Second method: Deploy to Openshift from a docker-compose file

Deploy to Openshift:

kompose -f docker-compose-prod.yml --provider openshift up -v

Remove the deployed artifacts from Openshift:

kompose -f docker-compose-prod.yml --provider openshift down -v

Configuration

  • HOST: Host of the project (using .<docker_machine_ip>.xip.io will make the application available on local machines)
  • POSTGRESQL_USER: User for Postgresql database
  • POSTGRESQL_DATABASE: Database name
  • POSTGRESQL_PASSWORD: User Postgresql password

Other useful commands

Docker Machine managment

docker-machine start openshift

docker-machine env openshift

eval $(docker-machine env openshift)

Openshift cluster management

oc cluster up

oc cluster down

About

Project to be used with Kompose (Kubernetes) to generate an Openshift project. The project will run a flask application using uwsgi and it will be exposed using Nginx. Also includes Postgresql and Redis Images

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published