Sign inSign up

atlasplatformdocker/virtual-parameter-service-host

By atlasplatformdocker

Updated 15 days ago

Image
0

834

atlasplatformdocker/virtual-parameter-service-host repository overview

About

The Virtual Parameter Calculation Service is a service for calculating and publishing virtual parameters as part of the McLaren Applied open data streaming ecosystem.

Usage

AppConfig.json

Before starting the docker image, create a AppConfig.json file in a folder and use the following template:

{
  "StreamApiConfig": {
    "StreamCreationStrategy": 2,
    "BrokerUrl": "localhost:9094",
    "PartitionMappings": [
      {}
    ],
    "IntegrateSessionManagement": true,
    "IntegrateDataFormatManagement": true,
    "UseRemoteKeyGenerator": false,
    "RemoteKeyGeneratorServiceAddress": "",
    "BatchingResponses": false,
    "StreamApiPort": 13579
  },
  "VirtualParameterServiceConfig": {
    "DataSource": "Default"
  },
  "VirtualParameterServiceConfig": {
    "DataSource": "Default",
    "BufferingWindowLengthInMs": "3000",
    "SlidingWindowPercentage":  5
  },
  "Serilog": {
    "Using": [
      "Serilog.Sinks.Console",
      "Serilog.Sinks.File"
    ],
    "MinimumLevel": "Debug",
    "WriteTo": [
      {
        "Name": "Console"
      },
      {
        "Name": "File",
        "Args": {
          "path": "C:/dev/"
        }
      }
    ]
  }
}

Docker Compose

Once the AppConfig.json is setup, the following docker compose can be used to start the services:

name: VPS-service
services:
  virtual-parameter-service:
    container_name: virtual-parameter-service
    image: atlasplatformdocker/virtual-parameter-service-host-dev:latest
    ports:
      - "10010:10010"
    volumes:
      - ./virtual-parameter-service/AppConfig.json:/config/AppConfig.json
    command: ["-c", "/config/AppConfig.json"] # Note can only use on command, better to use Environment Variables instead.
    environment:
    # - CONFIG_FILE_PATH=/config/AppConfig.json
      - LOG_FILE_PATH=logs/vps-svc-log.txt

Modify the volumes to the paths containing the AppConfig.json.

Tag summary

Content type

Image

Digest

sha256:58bfc6365

Size

137.1 MB

Last updated

15 days ago

docker pull atlasplatformdocker/virtual-parameter-service-host