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 @@ -187,6 +187,22 @@ plugin name: One subject line
187
187
more detailed description (if any)
188
188
```
189
189
190
+ ### ` docker `
191
+
192
+ #### Choosing a bitcoin network
193
+ Edit your config file, ` $HOME/.bitcoin/bitcoin.conf ` , and be sure the following line is in it:
194
+ ```
195
+ <network_name>=1
196
+ ```
197
+
198
+ | network | network\_ name | command |
199
+ | -----------| ---------------| ---------|
200
+ | 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/ ` |
201
+ | 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/ ` |
202
+ | 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 ` |
203
+
204
+
205
+
190
206
## More Plugins from the Community
191
207
192
208
- [ @conscott 's plugins] ( https://github.com/conscott/c-lightning-plugins )
You can’t perform that action at this time.
0 commit comments