From 6147c14c9b3ae033940cec3bd566f65e7d725fd1 Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 17 Jul 2023 09:26:54 +0200 Subject: [PATCH] setting up --- DistTestCore/DistTest.cs | 8 +++++--- docker/docker-compose.yaml | 11 +++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 docker/docker-compose.yaml diff --git a/DistTestCore/DistTest.cs b/DistTestCore/DistTest.cs index e2a5c77..6a0f2f8 100644 --- a/DistTestCore/DistTest.cs +++ b/DistTestCore/DistTest.cs @@ -36,6 +36,11 @@ namespace DistTestCore [OneTimeSetUp] public void GlobalSetup() { + fixtureLog.Log($"Codex Distributed Tests are starting..."); + fixtureLog.Log($"Codex image: '{CodexContainerRecipe.DockerImage}'"); + fixtureLog.Log($"Prometheus image: '{PrometheusContainerRecipe.DockerImage}'"); + fixtureLog.Log($"Geth image: '{GethContainerRecipe.DockerImage}'"); + // Previous test run may have been interrupted. // Begin by cleaning everything up. try @@ -54,9 +59,6 @@ namespace DistTestCore } fixtureLog.Log("Global setup cleanup successful"); - fixtureLog.Log($"Codex image: '{CodexContainerRecipe.DockerImage}'"); - fixtureLog.Log($"Prometheus image: '{PrometheusContainerRecipe.DockerImage}'"); - fixtureLog.Log($"Geth image: '{GethContainerRecipe.DockerImage}'"); } [SetUp] diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml new file mode 100644 index 0000000..6445b93 --- /dev/null +++ b/docker/docker-compose.yaml @@ -0,0 +1,11 @@ +services: + codex-node1: + # image: codexstorage/nim-codex:sha-82b0399 + build: + context: .. + dockerfile: docker/Dockerfile + environment: + - CODEX_LOG_LEVEL=${CODEX_LOG_LEVEL:-TRACE} + - CODEX_METRICS=${CODEX_METRICS:-false} + ports: + - 8080:8080/tcp # REST API