Skip to content

Commit 2dfba1f

Browse files
committed
fix Dockerfile, several plugins running
1 parent 08b1bed commit 2dfba1f

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG CLN_VERSION="24.02.2"
1+
ARG CLN_VERSION="24.08.1"
22

33
FROM elementsproject/lightningd:v${CLN_VERSION}
44

@@ -24,14 +24,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2424
python3 -m pip install --upgrade pip
2525

2626
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 && \
3330
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
3536

3637
EXPOSE 9735 9835
3738
ENTRYPOINT [ "/usr/bin/tini", "-g", "--", "./entrypoint.sh" ]

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,22 @@ Python plugins users must ensure to have a version `>= 3.8`.
171171
Python plugins developers must ensure their plugin to work with all Python versions `>= 3.8`.
172172

173173

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+
174190
## More Plugins from the Community
175191

176192
- [@conscott's plugins](https://github.com/conscott/c-lightning-plugins)

0 commit comments

Comments
 (0)