bakery

module
v0.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: Apache-2.0

README

CI Status CD Status codecov

Bakery is a proxy and filter for HLS and DASH manifests.

Setting up environment for development

Clone this project:
$ git clone https://github.com/cbsinteractive/bakery.git
Export the environment variables:

Please reach out to the Propeller team for configuring your access prior to working with propeller origin channels.

$ export BAKERY_CLIENT_TIMEOUT=5s 
$ export BAKERY_HTTP_PORT=:8082
$ export BAKERY_ORIGIN_HOST="https://streaming.cbs.com"
$ export BAKERY_PROPELLER_HOST="http://propeller.com"
$ export BAKERY_PROPELLER_CREDS="usr:pw"
$ export BAKERY_ENABLE_XRAY=false
$ export BAKERY_ENABLE_XRAY_PLUGINS=false #for local debugging, if XRAY is enabled, set this to false

Note that BAKERY_ORIGIN_HOST will be the base URL of your manifest files.

Setup a local AWS XRay Daemon

If you want to enable XRAY to run on your local machine, you will need to run an xray daemon locally.

For help on setting up a local instance, check the AWS documentation here

Bakery will connect to the Daemon on the default port

Run the API:
$ make run

The API will be available on http://localhost[:BAKERY_HTTP_PORT]

Run Tests

$ make  test

Help

You can find the source code for Bakery at GitHub: bakery

If you have any questions regarding Bakery, please reach out in the #i-vidtech-mediahub channel.

Directories

Path Synopsis
cmd
http command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL