Sign inSign up

fiware/orion-ld

By fiware

Updated 3 days ago

NGSI-LD Context Broker

Image
1

1M+

fiware/orion-ld repository overview

Orion-LD - FIWARE NGSI-LD Context Broker

FIWARE Core Context Management License badge Documentation badge Docker badge Support badge NGSI-LD badge

Orion-LD is a future Generic Enabler implementing the NGSI-LD API Right now implemented as a stand-alone process but in the future the idea is to extend the Orion Context Broker by implementing a plug-in mechanism in Orion and add the NGSi-LD requests and functionality as plugins.

For information on Orion-LD. please refer to its github repo.

How to use this image

The Orion-LD Context Broker must be instantiated with a Mongo-DB instance, a sample docker-compose file can be found below.

version: "3.5"
services:
  orion:
    image: fiware/orion-ld
    hostname: orion
    container_name: fiware-orion
    expose:
      - "1026"
    ports:
      - "1026:1026"
    depends_on:
      - mongo-db
    command: -dbhost mongo-db -logLevel DEBUG

  mongo-db:
    image: mongo:3.6
    hostname: mongo-db
    container_name: db-mongo
    ports:
      - "27017:27017" 
    networks:
      - default
    command: --nojournal
    volumes:
      - mongo-db:/data

volumes:
  mongo-db: ~

Configuration with environment variables

VarDefaultDescription
ORIONLD_PORT1026Port to receive new connections.
ORIONLD_FOREGROUNDfalseDon't start as daemon.
ORIONLD_LOCALIP0.0.0.0IP to receive new connections.
ORIONLD_PID_PATH/tmp/contextBroker.pidPid file path.
ORIONLD_MONGO_HOSTlocalhostMongo-DB database host.
ORIONLD_MONGO_REPLICA_SETName of the replica-set, if usd.
ORIONLD_MONGO_USERUsername for connecting mongo-db.
ORIONLD_MONGO_PASSWORDPassword for connecting mongo-db.
ORIONLD_MONGO_DBorionName of the database to be used inside mongo-db.
ORIONLD_MONGO_TIMEOUT10000Timeout in milliseconds for connections to the replica set (ignored in the case of not using replica set).
ORIONLD_MONGO_POOL_SIZE10Size of the mongo-db connection pool.
ORIONLD_MONGO_WRITE_CONCERN1Write concern (0:unacknowledged, 1:acknowledged) to be used with mongo-db.
ORIONLD_MONGO_ID_INDEXfalseShould an index on _id.id be automatically set.
ORIONLD_USEIPV4falseUse IP-V4 only.
ORIONLD_USEIPV6falseUse IP-V6 only.
ORIONLD_HARAKIRIfalseCommits harakiri on request.
ORIONLD_HTTPSfalseUse the https 'protocol'.
ORIONLD_HTTPS_KEYFILEPrivate server key file (for https).
ORIONLD_HTTPS_CERTFILECertificate key file (for https).
ORIONLD_MULTI_SERVICEfalseEnable multi-tenancy.
ORIONLD_HTTP_TIMEOUT-1Timeout in milliseconds for forwards and notifications.
ORIONLD_REQ_TIMEOUT0Connection timeout for REST requests (in seconds).
ORIONLD_MUTEX_POLICYtransientMutex policy (none/read/write/all).
ORIONLD_CORS_ALLOWED_ORIGINEnable Cross-Origin Resource Sharing with allowed origin. Use '__ALL' for any.
ORIONLD_CORS_MAX_AGE86400Maximum time in seconds preflight requests are allowed to be cached.
ORIONLD_CPR_FORWARD_LIMIT1000Maximum number of forwarded requests to Context Providers for a single client request.
ORIONLD_SUBCACHE_IVAL0Interval in seconds between calls to Subscription Cache refresh (0: no refresh).
ORIONLD_NOCACHEfalseDisable subscription cache for lookups.
ORIONLD_CONN_MEMORY64Maximum memory size per connection (in kilobytes).
ORIONLD_MAX_CONN1020Maximum number of simultaneous connections.
ORIONLD_TRQ_POOL_SIZE0Size of thread pool for incoming connections.
ORIONLD_NOTIF_MODEtransientNotification mode (persistent
ORIONLD_DROP_NOTIFfalseSimulate notifications instead of actual sending them (only for testing).
ORIONLD_STAT_COUNTERSfalseEnable request/notification counters statistics.
ORIONLD_STAT_SEM_WAITfalseEnable semaphore waiting time statistics.
ORIONLD_STAT_TIMINGfalseEnable request-time-measuring statistics.
ORIONLD_STAT_NOTIF_QUEUEfalseEnable thread pool notifications queue statistics.
ORIONLD_LOG_SUMMARY_PERIOD0Log summary period in seconds (defaults to 0, meaning 'off').
ORIONLD_RELOG_ALARMSfalseLog messages for existing alarms beyond the raising alarm log message itself
ORIONLD_CHECK_ID_V1falseAdditional checks for id fields in the NGSIv1 API.
ORIONLD_DISABLE_CUSTOM_NOTIFfalseDisable NGSIv2 custom notifications.
ORIONLD_LOG_FOR_HUMANSfalseHuman readable logs.
ORIONLD_DISABLE_FILE_LOGfalseDisable logging into a file
ORIONLD_DISABLE_METRICSfalseTurn off the 'metrics' feature.
ORIONLD_INSECURE_NOTIFfalseAllow HTTPS notifications to peers which certificate cannot be authenticated with known CA certificates.
ORIONLD_NGSIV1_AUTOCASTfalseAutomatic cast for number, booleans and dates in NGSIv1 update/create attribute operations.
ORIONLD_CONTEXT_DOWNLOAD_TIMEOUT5000Timeout in milliseconds for downloading of contexts.
ORIONLD_CONTEXT_DOWNLOAD_ATTEMPTS3Number of attempts for downloading of contexts.
ORIONLD_TROEfalseEnable TRoE - temporal representation of entities.
ORIONLD_TROE_HOSTlocalhostHost for troe database db server.
ORIONLD_TROE_PORT5432Port for troe database db server.
ORIONLD_TROE_USERpostgresUsername for troe database db server.
ORIONLD_TROE_PWDpasswordPassword for troe database db server.
ORIONLD_TROE_POOL_SIZE10Port to receive new connections.
ORIONLD_TMP_TRACES`truePort to receive new connections.
ORIONLD_SOCKET_SERVICEfalseEnable the socket service - accept connections via a normal TCP socket.
ORIONLD_SOCKET_SERVICE_PORT1027Size of the connection pool for TRoE Postgres database connections.
ORIONLD_FORWARDINGfalseTurn on forwarding.
ORIONLD_NO_NOTIFY_FALSE_UPDATEfalseTurn off notifications on non-updates.
ORIONLD_NOSWAPfalseDisable swapping.

How to build an image

See Orion-LD documentation

Tag summary

Content type

Image

Digest

sha256:534c3559d

Size

176.6 MB

Last updated

3 days ago

docker pull fiware/orion-ld