Sign inSign up

it4poster/sptrans_cassandra_client

By it4poster

•Updated over 9 years ago

SPTrans Sample Cassandra Client

Image
0

330

it4poster/sptrans_cassandra_client repository overview

⁠sptrans_cassandra_client

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

Tag summary

Content type

Image

Digest

Size

170.1 MB

Last updated

over 9 years ago

docker pull it4poster/sptrans_cassandra_client