Vehicle Attributes Installation

How to Setup for Deployment?

Create a dedicated folder for this installation to help organize your deployment.

1. Create and setup docker-compose.yml configuration

version: '3.3'
services:
  node1:
    image: "${VEHICLE_ATTRIBUTE_IMAGE}"
    runtime: nvidia
    pid: host
    network_mode: host
    cap_add:
      - SYS_PTRACE
    command: [
      httpserver,
      --listen-port, "${FREMIS1_LISTEN_PORT}",
      --listen-port-monitoring, "${FREMIS1_LISTEN_PORT_MONITORING}",
      --verbose,
    ]
    healthcheck:
      test: ["CMD", "curl", "-f", "http://0.0.0.0:${FREMIS1_LISTEN_PORT}/healthcheck"]
      interval: 5s
      timeout: 3s
      retries: 20
  coordinator:
    image: "${VEHICLE_ATTRIBUTE_IMAGE}"
    runtime: nvidia
    pid: host
    network_mode: host
    cap_add:
      - SYS_PTRACE
    command: [
      coordinator,
      --listen-port, "${COORDINATOR_LISTEN_PORT}",
      --listen-port-monitoring, "${COORDINATOR_LISTEN_PORT_MONITORING}",
      --config-path, "/etc/nodeflux/config.yml",
      --verbose,
    ]
    volumes:
      - ${PWD}/config.yml:/etc/nodeflux/config.yml
    depends_on:
      node1:
        condition: service_healthy

2. Create and setup config.yml

version: "v1"
nodes:
- address: "0.0.0.0:4021"
  analytic_id: "NFFS-VA"

3. Keep the analytics image and port addresses into .env file

export VEHICLE_ATTRIBUTE_IMAGE=registry.gitlab.com/nodefluxio/cloud/analytics/pipelines/vehicle-attribute-pipeline:on-premise-0.2.0

export COORDINATOR_LISTEN_PORT=4010
export COORDINATOR_LISTEN_PORT_MONITORING=5010

export FREMIS1_LISTEN_PORT=4020
export FREMIS1_LISTEN_PORT_MONITORING=5020

4. Run Image

docker compose up -d --build

Last updated