diff --git a/simulator/build.gradle.kts b/simulator/build.gradle.kts index e7795060..9887754d 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 d9fae4fa..5663bab0 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: