Skip to content

Commit

Permalink
Update docker to run river_node in combined mode (#714)
Browse files Browse the repository at this point in the history
issue #532
  • Loading branch information
sergekh2 authored Aug 11, 2024
1 parent c927998 commit b04638c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
9 changes: 3 additions & 6 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@ COPY --from=builder /bin/river_node /usr/bin/river_node
# Use setcap to allow the web server binary to bind to privileged ports
RUN setcap 'cap_net_bind_service=+ep' /usr/bin/river_node

COPY --from=builder /build/node/default_config.yaml /riveruser/stream_node/config/config.yaml
COPY --from=builder /build/node/default_config.yaml /riveruser/xchain_node/config/config.yaml
COPY --from=builder /build/node/default_config.yaml /riveruser/river_node/config/config.yaml

RUN mkdir -p /riveruser/stream_node/logs
RUN mkdir -p /riveruser/xchain_node/logs
RUN mkdir -p /riveruser/river_node/logs
RUN mkdir -p /riveruser/supervisord/logs
RUN chown riveruser:riveruser /riveruser/stream_node/logs
RUN chown riveruser:riveruser /riveruser/xchain_node/logs
RUN chown riveruser:riveruser /riveruser/river_node/logs
RUN chown riveruser:riveruser /riveruser/supervisord/logs

# Set non-root user
Expand Down
17 changes: 3 additions & 14 deletions core/docker/full_node.supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,9 @@ loglevel=info
logfile=/dev/stdout
logfile_maxbytes=0

[program:stream_node]
command=/usr/bin/river_node run stream
directory=/riveruser/stream_node
autostart=true
autorestart=false
user=riveruser
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

[program:xchain_node]
command=/usr/bin/river_node run xchain
directory=/riveruser/xchain_node
[program:river_node]
command=/usr/bin/river_node run
directory=/riveruser/river_node
autostart=true
autorestart=false
user=riveruser
Expand Down

0 comments on commit b04638c

Please sign in to comment.