- more tidying up

- setting up distribution plugin
- using more variables for mod config
This commit is contained in:
Adam 2021-12-02 00:54:15 +01:00
parent afbfeda616
commit 7091f7648d
34 changed files with 293 additions and 169 deletions

View file

@ -1,6 +1,9 @@
plugins {
id("dev.adamko.kafkatorio.process-runner")
id("dev.adamko.kafkatorio.infra.docker-compose")
}
description = "Send events from a Factorio server to a Kafka topic "
tasks.dockerUp {
dependsOn(":modules:infra-kafka-cluster:dockerUp")
}

View file

@ -1 +1,2 @@
COMPOSE_PROJECT_NAME=factorio-events-kafka-pipe
# Do not edit manually. This file was created with task 'updateEnv'
COMPOSE_PROJECT_NAME=kafkatorio

View file

@ -1,15 +1,15 @@
version: "3.9"
services:
factorio-events-kafka-pipe:
kafka-pipe:
image: openjdk:11-jre-buster
container_name: "factorio-events-kafka-pipe"
container_name: "kafka-pipe"
build:
dockerfile: "kafka-pipe.Dockerfile"
restart: "unless-stopped"
privileged: true
networks:
- "factorio-events-nw"
- "kafkatorio-nw"
environment:
FACTORIO_SERVER_CONTAINER_NAME: "factorio-server"
KAFKA_HOST: "kafka:29092"
@ -20,6 +20,6 @@ services:
# - "/var/run/docker.sock:/var/run/docker.sock"
networks:
factorio-events-nw:
name: "factorio-events-nw"
kafkatorio-nw:
name: "kafkatorio-nw"
external: true