Skip to content

ContainerSolutions/python-application-operator

Repository files navigation

python-application-operator

This is proof of concept

Description

This project is using Canonical Operator Framework

The main idea is to simplify python application deployment by using Gunicorn to serve it to the internet

Requirements

Usage

  1. Build charm charmcraft build
  2. Deploy charm juju deploy ./python-application-operator.charm --config examples/config_site1.yaml

Configuration

Configuration

Read config.yaml

Examples

Sample application that are were tested:

Developing

Create and activate a virtualenv with the development requirements:

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements-dev.txt

Testing

Tests are not implemented but scaffolding is ready

The Python operator framework includes a very nice harness for testing operator behaviour without full deployment. Just run_tests:

./run_tests

About

No description, website, or topics provided.

Resources

License

Stars

1 star

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors