Skip to content
No description, website, or topics provided.
JavaScript Python TypeScript HTML CSS Dockerfile Other
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
billing-api Add new lines. Oct 28, 2019
billing-invoice
billing-ui
docs
invoice-api Added support for zero tax projects Nov 1, 2017
nginx
.dockerignore
.gitignore
CONTRIBUTING.md
Dockerfile
LICENSE.md
README.md

README.md

Cancer Collaboratory Billing App

General Availability

arch

Reporting by cost


arch

Reporting by usage


Modules

Running as a Docker Container

Pull the latest image:

$ docker pull collaboratory/billing

Once ready, you can run the image. The container has nginx listening on port 8080 so you will need to expose this port. Also you should pass in your configuration file.

$ docker run -p <host_port>:8080 -v <path_to_config>/default.py:/srv/billing-api/billing/config/default.py collaboratory/billing 

The configuration file default.py takes the form of:

DEBUG = False  # Debug mode for flask
SECRET_KEY = 'random, secret, super duper secret key'
AUTH_URI = 'http://<identity>/v2.0'  # Keystone/Identity API endpoint
MYSQL_URI = 'mysql://<user>:<pass>@<mysql_host>:3306'  # mysql URI
FLASK_LOG_FILE = '/srv/billing-api/logs/billing.log'
BILLING_ROLE = 'billing'
VALID_BUCKET_SIZES = ['daily', 'weekly', 'monthly', 'yearly']  # Bucketing options for query.

License

You can’t perform that action at this time.