Skip to content

This repository contains the powerplant controller micro service

Notifications You must be signed in to change notification settings

Kilowatt-Commando/controller-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Powerplant Controller Service

Quality Gate Status Coverage

SonarQube Cloud

This repository contains the controller microservice.

Testcontainers

This project uses Testcontainers to test certain functionalities. To execute the tests a Docker environment must be provided for these tests to run.

Environment variables

The application requires the following environment variables:

Name Description
KAFKA_BROKER IP address of Kafka Broker
KAFKA_BROKER_PORT Port number of Kafka Broker
KAFKA_GROUP_ID Group id of controller service (default in Docker container: controller)
KAFKA_POWERPLANT_CONTROL_TOPIC Topic for powerplant commands (default in Docker container: powerplant
KAFKA_POWERPLANT_TOPIC Topic of powerplant status updates (default in Docker container: backend)

Run using Docker

Step 1:

Build the Docker image:

mvn package
docker build -t kwkmdo-controller .

Step 2:

Execute the Docker container with required ENV variables:

docker run \
  -p 8080:8080\
  -e KAFKA_BROKER=<broker_ip_address> \
  -e KAFKA_BROKER_PORT=<broker_port> \
  kwkmdo-controller

About

This repository contains the powerplant controller micro service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors