From e2223a8a6d7004213d218433a44f7cb73fde4eba Mon Sep 17 00:00:00 2001 From: georgi-l95 Date: Thu, 19 Dec 2024 17:22:21 +0200 Subject: [PATCH] remove unneeded env variables from docker compose Signed-off-by: georgi-l95 --- simulator/build.gradle.kts | 9 +++++++++ simulator/docker/docker-compose.yml | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/simulator/build.gradle.kts b/simulator/build.gradle.kts index e77950601..9887754d9 100644 --- a/simulator/build.gradle.kts +++ b/simulator/build.gradle.kts @@ -117,3 +117,12 @@ val startDockerContainer: TaskProvider = workingDir(dockerBuildRootDirectory) commandLine("sh", "-c", "./prepare-docker.sh") } + +tasks.register("stopDockerContainer") { + description = "Stops running docker containers of the Block Stream Simulator" + group = "docker" + + dependsOn(copyDockerFolder) + workingDir(dockerBuildRootDirectory) + commandLine("sh", "-c", "docker compose -p simulator stop") +} diff --git a/simulator/docker/docker-compose.yml b/simulator/docker/docker-compose.yml index d9fae4fae..5663bab05 100644 --- a/simulator/docker/docker-compose.yml +++ b/simulator/docker/docker-compose.yml @@ -10,9 +10,7 @@ services: env_file: - .env environment: - - GRPC_SERVER_ADDRESS=${GRPC_SERVER_ADDRESS} - BLOCK_STREAM_SIMULATOR_MODE=${PUBLISHER_BLOCK_STREAM_SIMULATOR_MODE} - - PROMETHEUS_ENDPOINT_ENABLED=${PROMETHEUS_ENDPOINT_ENABLED} - PROMETHEUS_ENDPOINT_PORT_NUMBER=${PUBLISHER_PROMETHEUS_ENDPOINT_PORT_NUMBER} healthcheck: test: ["CMD", "curl", "-f", "http://localhost:9998/metrics"] @@ -31,9 +29,7 @@ services: env_file: - .env environment: - - GRPC_SERVER_ADDRESS=${GRPC_SERVER_ADDRESS} - BLOCK_STREAM_SIMULATOR_MODE=${CONSUMER_BLOCK_STREAM_SIMULATOR_MODE} - - PROMETHEUS_ENDPOINT_ENABLED=${PROMETHEUS_ENDPOINT_ENABLED} - PROMETHEUS_ENDPOINT_PORT_NUMBER=${CONSUMER_PROMETHEUS_ENDPOINT_PORT_NUMBER} depends_on: simulator-publisher: