From a31afea6207393e08488d92aaf09a0633be8be26 Mon Sep 17 00:00:00 2001 From: Raycho Mukelov Date: Fri, 8 Sep 2023 18:45:37 +0300 Subject: [PATCH] Fix --- Dockerfile | 1 - docker-compose.yml | 2 +- tests/raft_test_node_standalone.nim | 6 ++++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 tests/raft_test_node_standalone.nim diff --git a/Dockerfile b/Dockerfile index ca70cc6..323319d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,6 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio WORKDIR /app # copy the content of the local directory to the working directory COPY . . -WORKDIR /app # Install pre-requisites RUN apt-get update && apt-get upgrade -y && apt-get clean diff --git a/docker-compose.yml b/docker-compose.yml index d1ce638..79bb583 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,6 @@ services: image: nim_raft_node restart: always volumes: - - ./config.json:/app/config.json + - ./raft_node_config.json:/app/raft_node_config.json # You get the idea. To run the image N times with possibly different configs diff --git a/tests/raft_test_node_standalone.nim b/tests/raft_test_node_standalone.nim new file mode 100644 index 0000000..d0890a5 --- /dev/null +++ b/tests/raft_test_node_standalone.nim @@ -0,0 +1,6 @@ +import ../raft +import basic_state_machine + + +if isMainModule: + var node = RaftNode[SmCommand, SmState].new() \ No newline at end of file