HUB
Sign inSign up
cyclotron-site logo

fjudith/cyclotron-site

By fjudith

•Updated over 6 years ago

Image
0

1.5K

fjudith/cyclotron-site repository overview

⁠Introduction

Cyclotron⁠ is a browser-based platform built by Expedia⁠ for constructing dashboards. Build on and requiring MongoDB⁠ and Node.js⁠, It provides standard boilerplate and plumbing, allowing non-programmers to easily create and edit dashboards using customizable components. It has a built-in dashboard editor, and hosts the dashboards directly.

In this repository

  • Site (webui) and Svc (api) docker images that are always up-to-date with cyclotron releases
  • docker-compose to run cyclotron application stack with mongodb
  • kubernetes manifests to run cyclotron.

⁠Description

The Dockefile builds from node:lts then nginx:stable-alpine for the cyclotron-site and node:lts-apline for the cyclotron-svc.

⁠Features

  • Run components as non-root
  • Support for LDAP authentication

⁠Quick start

Run the entire stack using docker-compose.

git clone https://github.com/fjudith/docker-cyclotron
cd deploy/docker-compose
docker-compose up -d

⁠Environment variables

The following tables describe the environment variables supported by the cyclotron-site and cyclotron-svc containers.

⁠API service (cyclotron-svc)
VariableDescriptionDefault
MONGO_URLConnection string to access the MongoDB databasemongo://mongodb:27017/cyclotron
LISTEN_PORTPort to run the Cyclotron Service on8087
BASE_PATHBase path this server is hosted at; used by Swagger docs/
WEB_SERVERURL for website using this service; Used for exporting Dashboards as PDFs via CasperJShttp://cyclotron-site
ENCRYPTION_KEYKey for encrypting/decrypting strings on the /crypto endpoint""
LOAD_EXAMPLES_DASHBOARDSIf enabled, loads example Dashboards from /examples folder into the databaseTrue
ANALYTICS_ENABLEEnable or disable analytic data collectionFalse
ANALYTICS_ENGINEPossible values: mongo, elasticsearchmongo
ELASTICSEARCH_HOSTElasticsearch server hostname and port (use comma "," for multiple server)elasticsearch:9200
ELASTICSEARCH_INDEX_PREFIXPrefix of Cyclotron indicescyclotron
ELASTICSEARCH_PAGE_VIEWS_INDEX_STRATEGYConfigure how frequently to rotate to new page views indiciesmonthly
ELASTICSEARCH_DATASOURCES_INDEX_STRATEGYConfigure how frequently to rotate to new datasources indiciesmonthly
ELASTICSEARCH_EVENTS_INDEX_STRATEGYConfigure how frequently to rotate to new event indiciesyearly
AUTH_ENABLEEnable or disable authenticationFalse
AUTH_ADMINSList of LDAP distinguished names of Cyclotron Admin users""
LDAP_URLConnection string to access the LDAP authentication serverldap://ldap.example.com:389
LDAP_SEARCH_BASEDirectory location where user search should beingou=users, dc=example, dc=com
LDAP_SEARCH_FILTERFilter allowing to match appropriate users(cn={{username}})
LDAP_ADMIN_DNLDAP distinguished name of the user to process the directory queries; not the username;cn=cyclotron, ou=apps, dc=example, dc=com
LDAP_ADMIN_PASSWORDPassword of the user to process the directory queries""
LDAP_SEARCH_CATEGORIESList of LDAP paths to search for auto-complete""
REQUEST_LIMITLimits the maximum size request that can be processed. May need to be increased to save very large Dashboards.5mb
TRUSTED_CAList of addistional CAs to trust when making HTTP proxy requests""

⁠References

Tag summary
Recent tags
Content type
Image
Digest
Size
22.6 MB
Last updated
over 6 years ago
docker pull fjudith/cyclotron-site:latest