File tree Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 1
- ARG CLN_VERSION="24.02.2 "
1
+ ARG CLN_VERSION="24.08.1 "
2
2
3
3
FROM elementsproject/lightningd:v${CLN_VERSION}
4
4
@@ -24,14 +24,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
24
24
python3 -m pip install --upgrade pip
25
25
26
26
COPY . /tmp/plugins
27
- RUN mkdir /tmp/oldplugins && mv /usr/local/libexec/c-lightning/plugins/* /tmp/oldplugins/ && \
28
- cd /usr/local/libexec/c-lightning/plugins && \
29
- git clone --depth 1 --shallow-submodules -j4 \
30
- ${EXTRA_PLUGINS} \
31
- file:///tmp/plugins . && \
32
- pip3 install setuptools && \
27
+
28
+ RUN mkdir /tmp/plugins-enabled/ && cd /tmp/plugins && \
29
+ git submodule update --init --recursive && pip3 install setuptools && \
33
30
find -name requirements.txt -print0 | xargs -0 -n 1 pip3 install -r && \
34
- mv /tmp/oldplugins/* /usr/local/libexec/c-lightning/plugins && rmdir /tmp/oldplugins
31
+ ls */ && \
32
+ for plgn in `find . -type f | grep -E '/([^/]+)/\1\. py$' |grep -Ev 'archived|backup|donations|qt' `; do \
33
+ cd /tmp/plugins-enabled && \
34
+ ln -s /tmp/plugins/${plgn}; \
35
+ done
35
36
36
37
EXPOSE 9735 9835
37
38
ENTRYPOINT [ "/usr/bin/tini" , "-g" , "--" , "./entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -171,6 +171,22 @@ Python plugins users must ensure to have a version `>= 3.8`.
171
171
Python plugins developers must ensure their plugin to work with all Python versions ` >= 3.8 ` .
172
172
173
173
174
+ ### ` docker `
175
+
176
+ #### Choosing a bitcoin network
177
+ Edit your config file, ` $HOME/.bitcoin/bitcoin.conf ` , and be sure the following line is in it:
178
+ ```
179
+ <network_name>=1
180
+ ```
181
+
182
+ | network | network\_ name | command |
183
+ | -----------| ---------------| ---------|
184
+ | bitcoin | bitcoin | ` docker run -it --rm --network=host -v $HOME/.lightning:/root/.lightning -v $HOME/.bitcoin:/root/.bitcoin mycln-plugins --disable-plugin=bcli --log-level=debug --database-upgrade=true --sauron-api-endpoint https://blockstream.info/api/ ` |
185
+ | mutinynet | signet | ` docker run -it --rm --network=host -v $HOME/.lightning:/root/.lightning -v $HOME/.bitcoin:/root/.bitcoin -e LIGHTNINGD_NETWORK=signet mycln-plugins --signet --disable-plugin=bcli --log-level=debug --database-upgrade=true --sauron-api-endpoint https://mutinynet.com/api/ ` |
186
+ | testnet | testnet | ` docker run -it --rm --network=host -v $HOME/.lightning:/root/.lightning -v $HOME/.bitcoin:/root/.bitcoin -e LIGHTNINGD_NETWORK=testnet mycln-plugins --testnet --disable-plugin=bcli --log-level=debug --database-upgrade=true --sauron-api-endpoint https://mempool.space/testnet/api ` |
187
+
188
+
189
+
174
190
## More Plugins from the Community
175
191
176
192
- [ @conscott 's plugins] ( https://github.com/conscott/c-lightning-plugins )
You can’t perform that action at this time.
0 commit comments