This commit is contained in:
Raycho Mukelov 2023-09-08 18:45:37 +03:00
parent f89cb6dc34
commit a31afea620
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,6 @@
import ../raft
import basic_state_machine
if isMainModule:
var node = RaftNode[SmCommand, SmState].new()