add project version to docker env
This commit is contained in:
parent
77429f35bf
commit
e20f51f446
6 changed files with 6 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ val dockerEnv by tasks.registering(WriteProperties::class) {
|
|||
setOutputFile(dockerSrcDir.file(".env"))
|
||||
properties(
|
||||
"COMPOSE_PROJECT_NAME" to dockerComposeProjectName,
|
||||
"KAFKATORIO_VERSION" to project.version,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# Do not edit manually. This file was created with task 'dockerEnv'
|
||||
COMPOSE_PROJECT_NAME=kafkatorio
|
||||
FACTORIO_VERSION=1.1.50
|
||||
KAFKATORIO_VERSION=0.2.1
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
# Do not edit manually. This file was created with task 'dockerEnv'
|
||||
COMPOSE_PROJECT_NAME=kafkatorio
|
||||
KAFKATORIO_VERSION=0.2.1
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
# Do not edit manually. This file was created with task 'dockerEnv'
|
||||
COMPOSE_PROJECT_NAME=kafkatorio
|
||||
KAFKATORIO_VERSION=0.2.1
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ services:
|
|||
- "kafkatorio-nw"
|
||||
environment:
|
||||
FACTORIO_SERVER_CONTAINER_NAME: "factorio-server"
|
||||
KAFKATORIO_VERSION: $KAFKATORIO_VERSION
|
||||
KAFKA_HOST: "kafka:29092"
|
||||
volumes:
|
||||
# Windows (requires privileged/root)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
# Pipe Docker logs from a Factorio server to a Kafka topic
|
||||
|
||||
echo "Kafkatorio-Pipe version $KAFKATORIO_VERSION"
|
||||
echo "Piping logs from $FACTORIO_SERVER_CONTAINER_NAME to $KAFKA_HOST"
|
||||
|
||||
trap endProcess SIGINT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue