Example analyses for Databench.
Switch branches/tags
Nothing to show
Clone or download

README.rst

https://raw.githubusercontent.com/svenkreiss/databench/master/logo/logo-w100.png

Databench Examples

Example analyses for Databench. Live demos of some of them are at databench-examples.trivial.io and the Databench documentation is here.
https://travis-ci.org/svenkreiss/databench_examples.svg?branch=master

Environment and Install

Setup your environment and install dependencies in the current directory with:

git clone https://github.com/svenkreiss/databench_examples.git .

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

Docker

docker build -t svenkreiss/databench_examples .
docker run --name databench_examples -d -p 5000:5000 svenkreiss/databench_examples

Kubernetes

# create cluster
gcloud container clusters create cluster-1 --num-nodes 1 --machine-type g1-small
gcloud compute instances list  # for info

# set up container
kubectl create -f rc.json
kubectl create -f service.json

# for info
kubectl describe rc
kubectl describe pods
kubectl describe services

# forward port
kubectl port-forward databench-demo 5000
# ... and open http://localhost:5000

# update
docker build -t svenkreiss/databench_examples .
docker tag svenkreiss/databench_examples svenkreiss/databench_examples:c-$(git rev-parse HEAD)
docker push svenkreiss/databench_examples:c-$(git rev-parse HEAD)
kubectl rolling-update rc-databench-demo --image=svenkreiss/databench_examples:c-$(git rev-parse HEAD)