Skip to content

juniper-garden/juniper-ingestion-stack

Repository files navigation

Open Source Ingestion Server

Getting Started

We use docker to start development infrastructure, it is required to have running before you can begin developing the server side portion of the application. This is a nodejs ingestion server that interfaces with a separate database, this server doesn't handle sensor onboarding, only ingestion of data at the moment. In the future, device onboarding and management will be moved either to this repository or a separate repository.

Development

  • Install dependencies with yarn install
  • run docker volume create timeseries-db-volume
  • run docker-compose up -d to make sure services have started
  • run the script at ./scripts/setup_db.sh to setup the database
  • run yarn build to make sure the current application builds appropriately
  • run yarn watch for development, this starts and watches the server

Kubernetes Local Deployment

Technologies

Stack Setup

  • docker volume create timeseries-db-volume
  • docker build -t juniper-ingestion-stack .
  • docker run -d --name juniper-ingestion-stack -p 3000:3000 juniper-ingestion-stack
  • minikube start
  • kubectl create -f kubernetes.yml
  • kubectl get deploy,po
  • kubectl expose deployment juniper-ingestion-stack --type="LoadBalancer"
  • In another terminal run minikube tunnel
  • kubectl get svc, examine the external ip (should be 127.0.0.x with a port)

Stack updates

  • docker tag juniper-ingestion-stack dashcraft/juniper-ingestion-stack
  • docker push dashcraft/juniper-ingestion-stack

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published