bakery

module
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 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:
$ export BAKERY_CLIENT_TIMEOUT=5s
$ export BAKERY_HTTP_PORT=:8082
$ export BAKERY_ENABLE_AUTH=false
$ export BAKERY_ORIGIN_HOST="https://streaming.cbs.com"

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

Propeller

To enable Propeller as an origin you can set the following:

$ export BAKERY_PROPELLER_ENABLED=true
$ export BAKERY_PROPELLER_HOST="http://propeller.com"
$ export BAKERY_PROPELLER_CREDS="usr:pw"

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

AWS XRay

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

Once configured, you can enable the following environment variables:

$ export BAKERY_ENABLE_XRAY=true
$ export BAKERY_ENABLE_XRAY_PLUGINS=false #For local debugging you will want to set this to false

When enabled, 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

Jump to

Keyboard shortcuts

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