834
The Virtual Parameter Calculation Service is a service for calculating and publishing virtual parameters as part of the McLaren Applied open data streaming ecosystem.
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/"
}
}
]
}
}
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.
Content type
Image
Digest
sha256:58bfc6365…
Size
137.1 MB
Last updated
15 days ago
docker pull atlasplatformdocker/virtual-parameter-service-host