cln: add summars and monitor plugin

remove summary plugin archived
update plugin repo to latest
cln healthcheck don't use plugins rely to getinfo command
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
Lakshya Singh 2024-06-11 22:47:30 +05:30
parent 50bebd3700
commit 74634931aa
No known key found for this signature in database
GPG Key ID: 6491470634BAE613
5 changed files with 18 additions and 9 deletions

4
.env
View File

@ -7,9 +7,9 @@ CORE_LIGHTNING_GIT_HASH=a2a136fe3ebef1d028d1e20ebf1f987b8c05bbf8
# clboss version v0.13.1 # clboss version v0.13.1
CLBOSS_REPO=https://github.com/ZmnSCPxj/clboss.git CLBOSS_REPO=https://github.com/ZmnSCPxj/clboss.git
CLBOSS_GIT_HASH=e4f15b6aeccc0548b8c80f7948d2265111c4e9c5 CLBOSS_GIT_HASH=e4f15b6aeccc0548b8c80f7948d2265111c4e9c5
# cln plugins # cln plugins (2024-06-06 17:02:52 +0200)
CLN_PLUGINS_REPO=https://github.com/lightningd/plugins.git CLN_PLUGINS_REPO=https://github.com/lightningd/plugins.git
CLN_PLUGINS_GIT_HASH=a525e6c42033a6270c81065a559301ceb2a761fa CLN_PLUGINS_GIT_HASH=de0c7af343df25e82536233ac248ef46efea8670
# txoo version 0.6.4 # txoo version 0.6.4
TXOO_REPO=https://gitlab.com/lightning-signer/txoo.git TXOO_REPO=https://gitlab.com/lightning-signer/txoo.git
TXOO_GIT_HASH=6f0718e3f2b9406df5e3cd73306f473199141da0 TXOO_GIT_HASH=6f0718e3f2b9406df5e3cd73306f473199141da0

View File

@ -44,7 +44,13 @@ ARG CLN_PLUGINS_GIT_HASH \
CLN_PLUGINS_REPO CLN_PLUGINS_REPO
RUN git clone $CLN_PLUGINS_REPO RUN git clone $CLN_PLUGINS_REPO
RUN cd plugins && \ RUN cd plugins && \
git checkout $CLN_PLUGINS_GIT_HASH git checkout $CLN_PLUGINS_GIT_HASH && \
git submodule update --init --recursive
# Build summars plugin
RUN cd plugins/summars && \
cargo install --locked --path . --bin summars --profile release --root /usr/local/ && \
cargo clean
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM:-linux/amd64}} alpine:3.18 as clboss_builder FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM:-linux/amd64}} alpine:3.18 as clboss_builder
@ -134,7 +140,8 @@ COPY --from=builder /usr/libexec/c-lightning /usr/libexec/c-lightning
COPY --from=builder /usr/share/man/man8 /usr/share/man/man8 COPY --from=builder /usr/share/man/man8 /usr/share/man/man8
COPY --from=builder /usr/share/doc/c-lightning /usr/share/doc/c-lightning COPY --from=builder /usr/share/doc/c-lightning /usr/share/doc/c-lightning
COPY --from=clboss_builder /usr/bin/clboss /usr/bin/clboss COPY --from=clboss_builder /usr/bin/clboss /usr/bin/clboss
COPY --from=builder /build/plugins/archived/summary /usr/local/src/plugins/summary COPY --from=builder /build/plugins/monitor/monitor.py /usr/local/src/plugins/monitor.py
COPY --from=builder /usr/local/bin/summars /usr/local/src/plugins/summars
COPY --from=vls_builder /usr/local/bin/remote_hsmd_socket /usr/libexec/c-lightning/remote_hsmd_socket COPY --from=vls_builder /usr/local/bin/remote_hsmd_socket /usr/libexec/c-lightning/remote_hsmd_socket
RUN addgroup -S lightning && adduser -S lightning -G lightning && \ RUN addgroup -S lightning && adduser -S lightning -G lightning && \

View File

@ -2,4 +2,4 @@
set -ex set -ex
lightning-cli --network $VLS_NETWORK summary lightning-cli --network $VLS_NETWORK getinfo

View File

@ -7,6 +7,7 @@ max-locktime-blocks=288
important-plugin=/usr/bin/clboss important-plugin=/usr/bin/clboss
clboss-auto-close=true clboss-auto-close=true
bind-addr=0.0.0.0:19846 bind-addr=0.0.0.0:19846
plugin=/usr/local/src/plugins/summary/summary.py plugin=/usr/local/src/plugins/summars
plugin=/usr/local/src/plugins/monitor.py
subdaemon=hsmd:remote_hsmd_socket subdaemon=hsmd:remote_hsmd_socket
experimental-anchors experimental-anchors

View File

@ -7,6 +7,7 @@ max-locktime-blocks=288
important-plugin=/usr/bin/clboss important-plugin=/usr/bin/clboss
clboss-auto-close=true clboss-auto-close=true
bind-addr=0.0.0.0:19735 bind-addr=0.0.0.0:19735
plugin=/usr/local/src/plugins/summary/summary.py plugin=/usr/local/src/plugins/summars
plugin=/usr/local/src/plugins/monitor.py
subdaemon=hsmd:remote_hsmd_socket subdaemon=hsmd:remote_hsmd_socket
experimental-anchors experimental-anchors