Public | Automated Build

Last pushed: a year ago
Short Description
SPTrans Sample Cassandra Client
Full Description


Sample cassandra client of consuming SPTrans to colelct the city buses location

This sample uses 2 containers to run the sample.

  • 1st is sample_cassandra that is simple Cassandra DB
  • 2nd is sample_cassandra_sptrans_app that is the SPtrans collector app.

The separation is meant to allow better separation of code and to allow the cassandra(cassandra_host) to be shared by multiple apps.

Running from DockerHub

docker run --name sample_cassandra -d cassandra:3.10
#sleep is used to allow cassandra to start properly
sleep 30

docker run --name sample_cassandra_sptrans_app --link sample_cassandra:cassandra_host  --tmpfs /root/RAM:size=32M -e API_TOKEN_OLHOVIVO="API_KEY_GET_FROM_STRANS_SITE"   -e SPLIT_LINES=200 -d  it4poster/sptrans_cassandra_client
Docker Pull Command