Skip to content

Commit

Permalink
Use supervisord to manage the Kadalu mgr service instead of systemd (k…
Browse files Browse the repository at this point in the history
…adalu#279)

Signed-off-by: Aravinda Vishwanathapura <[email protected]>
  • Loading branch information
aravindavk authored Dec 28, 2022
1 parent d4a9855 commit 879ccf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update -yq && \
apt-get install -y --no-install-recommends lvm2 curl attr sqlite3 ca-certificates gnupg2
apt-get install -y --no-install-recommends lvm2 curl attr sqlite3 ca-certificates gnupg2 supervisor

RUN sed -i.save -e "s#udev_sync = 1#udev_sync = 0#" \
-e "s#udev_rules = 1#udev_rules = 0#" \
Expand All @@ -15,5 +15,7 @@ RUN echo 'deb https://kadalu.tech/pkgs/1.0.x/ubuntu/22.04 /' | tee /etc/apt/sour
RUN curl -fsSL https://kadalu.tech/pkgs/1.0.x/ubuntu/22.04/KEY.gpg | gpg --dearmor | tee /etc/apt/trusted.gpg.d/kadalu.gpg > /dev/null
RUN apt-get update -yq && apt-get install -y kadalu-storage

ENTRYPOINT ["/usr/sbin/kadalu", "mgr", "--workdir=/var/lib/kadalu", "--logdir=/var/log/kadalu"]
COPY container/supervisord.conf /etc/supervisor/conf.d/

ENTRYPOINT ["/usr/bin/supervisord"]
EXPOSE 3000
5 changes: 5 additions & 0 deletions container/supervisord.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[supervisord]
nodaemon=true

[program:kadalu-mgr]
command=/usr/sbin/kadalu mgr --workdir=/var/lib/kadalu --logdir=/var/log/kadalu

0 comments on commit 879ccf6

Please sign in to comment.