Skip to content

Commit

Permalink
Merge pull request #40 from PaskLab/rts
Browse files Browse the repository at this point in the history
Added node RTS to docker-compose environment.
  • Loading branch information
pascallapointe authored Sep 2, 2024
2 parents dec5e80 + d495ffa commit e2c33f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfiles/node/files/start-producer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _term() {
trap _term SIGTERM SIGINT

echo "Starting Cardano Producer Node ..."
cardano-node run +RTS -N6 -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} --shelley-kes-key ${KES} --shelley-vrf-key ${VRF} --shelley-operational-certificate ${CERT} &
cardano-node run +RTS ${NODE_RTS} -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} --shelley-kes-key ${KES} --shelley-vrf-key ${VRF} --shelley-operational-certificate ${CERT} &

PID=$!
wait $PID
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/node/files/start-relay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _term() {
trap _term SIGTERM SIGINT

echo "Starting Cardano Relay Node ..."
cardano-node run +RTS -maxN4 -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} &
cardano-node run +RTS ${NODE_RTS} -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} &

PID=$!
wait $PID
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/node/files/start-with-topology.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ trap _term SIGTERM SIGINT
echo "Starting Topology Updater ..."
topologyUpdater.sh &
echo "Starting Cardano Relay Node ..."
cardano-node run +RTS -maxN4 -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} &
cardano-node run +RTS ${NODE_RTS} -RTS --topology ${TOPOLOGY} --database-path ${DB_PATH} --socket-path ${SOCKET_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG} &

PID=$!
wait $PID
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
cardano-relay1:
container_name: cardano-relay1
environment:
NODE_RTS: '-maxN4'
CNODE_HOSTNAME: 'CHANGE ME'
PUBLIC_PORT: 3001
image: cardano_node:latest
Expand Down Expand Up @@ -48,6 +49,7 @@ services:
cardano-relay2:
container_name: cardano-relay2
environment:
NODE_RTS: '-maxN4'
CNODE_HOSTNAME: 'CHANGE ME'
PUBLIC_PORT: 3002
image: cardano_node:latest
Expand Down Expand Up @@ -90,6 +92,8 @@ services:

cardano-bp:
container_name: cardano-bp
environment:
NODE_RTS: '-N6'
image: cardano_node:latest
#command: ["/bin/bash", "-c", "start-relay.sh"] # Comment for node producer or relay with topology updater
#command: ["/bin/bash", "-c", "start-producer.sh"] # Uncomment for node producer
Expand Down

0 comments on commit e2c33f1

Please sign in to comment.