Merge branch 'king-11/plugin-update' into 'main'
cln: add summars, monitor and clnrest See merge request lightning-signer/vls-container!29
This commit is contained in:
commit
fbd1eb39d6
4
.env
4
.env
@ -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
|
||||||
|
@ -43,6 +43,8 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- 19735
|
- 19735
|
||||||
- 7701
|
- 7701
|
||||||
|
ports:
|
||||||
|
- 3010:3010
|
||||||
networks:
|
networks:
|
||||||
- lightning
|
- lightning
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -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,8 +140,10 @@ 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
|
||||||
|
COPY --from=builder /build/core-lightning/plugins/clnrest/requirements.txt /usr/local/src/plugins/clnrest_requirements.txt
|
||||||
|
|
||||||
RUN addgroup -S lightning && adduser -S lightning -G lightning && \
|
RUN addgroup -S lightning && adduser -S lightning -G lightning && \
|
||||||
mkdir -p ${LIGHTNINGD_DATA} && \
|
mkdir -p ${LIGHTNINGD_DATA} && \
|
||||||
@ -165,6 +173,8 @@ RUN pip3 install \
|
|||||||
requests \
|
requests \
|
||||||
packaging
|
packaging
|
||||||
|
|
||||||
|
RUN pip3 install -r /usr/local/src/plugins/clnrest_requirements.txt
|
||||||
|
|
||||||
HEALTHCHECK --interval=5s --timeout=10s --start-period=5s \
|
HEALTHCHECK --interval=5s --timeout=10s --start-period=5s \
|
||||||
CMD ["/healthcheck.sh"]
|
CMD ["/healthcheck.sh"]
|
||||||
|
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
lightning-cli --network $VLS_NETWORK summary
|
lightning-cli --network $VLS_NETWORK getinfo
|
||||||
|
@ -7,6 +7,8 @@ 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
|
||||||
|
clnrest-port=3010
|
||||||
|
@ -7,6 +7,8 @@ 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
|
||||||
|
clnrest-port=3010
|
||||||
|
Loading…
x
Reference in New Issue
Block a user