Skip to content

Repo containing a custom bunnyshell template for Flask + PostgreSQL stack

Notifications You must be signed in to change notification settings

dejanu/bns_Hackathon

Repository files navigation

bns_Hackathon

Project Description

  • Webapp that allows to search k8s objects definition and usage

Deployment

  • If you want to rename the app.py file, e.g. mv app.py main.py, you need to update env variable FLASK_APP export FLASK_APP=main.py
# run app on default port 5000
flask run --host=0.0.0.0
  • Docker setup:
# create env vars
source backend/db_stuff/setup_db.sh

# build image and start flask app as container
docker build -t dejanualex/bns_hackathon .
docker run -p 5000:5000 -e DATABASE_URL=$DATABASE_URL -e DATABASE_USER=$DATABASE_USER -e DATABASE_PASSWORD=$DATABASE_PASSWORD dejanualex/bns_hackathon

# start docker compose
docker-compose -f docker-compose.yml up --remove-orphans --build

Bunyshell:

  • Bunnyshell environment definition

  • The Environment has all its Docker-compose Components deployed into its own Kubernetes namespace, isolated from other environments.

  • A template contains the full definition of an environment - resource allocations, the services and jobs needed to run your applications with predetermined configuration values while still allowing you to customize the configuration.

  • The template for the environment can be found here

About

Repo containing a custom bunnyshell template for Flask + PostgreSQL stack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published