CancerCollaboratory/billing

Name: billing

Owner: CancerCollaboratory

Description: null

Created: 2016-09-07 11:20:53.0

Updated: 2018-05-24 21:31:11.0

Pushed: 2018-05-16 18:37:51.0

Homepage: null

Size: 841

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Billing for Cancer Collaboratory


Cancer Collaboratory Billing App


arch

Reporting by cost


arch

Reporting by usage


Modules
Running as a Docker Container

Pull the latest image:

cker 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.

cker 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:

G = False  # Debug mode for flask
ET_KEY = 'random, secret, super duper secret key'
_URI = 'http://<identity>/v2.0'  # Keystone/Identity API endpoint
L_URI = 'mysql://<user>:<pass>@<mysql_host>:3306'  # mysql URI
K_LOG_FILE = '/srv/billing-api/logs/billing.log'
ING_ROLE = 'billing'
D_BUCKET_SIZES = ['daily', 'weekly', 'monthly', 'yearly']  # Bucketing options for query.
License

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.