clightning4j / clightning4j-node Goto Github PK
View Code? Open in Web Editor NEWA core lightning node that ran on clightning4j tools to enable a easy access to core lightning node
A core lightning node that ran on clightning4j tools to enable a easy access to core lightning node
Docker container give some problem with tor, maybe this can help https://github.com/torservers/onionize-docker/blob/master/files/docker-gen/torrc.tmpl
Make sure that all the platform in Github action are supported with a related docker image.
For the moment we are interesting to support the following platform linux/amd64,linux/arm64,linux/arm,linux/arm64,darwin/amd64
So, after this support the command
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/arm64,darwin/amd64 -t vincenzopalazzo/clightning4j-node:v0.10.X --push .
$ git rev-parse HEAD
b6cca9deafd4c51029f5ffb05c22cca53dc30b81
$ cd 0.10.1
$ docker-compose -f rest-mode-docker-compose.yml up
...
Attaching to 0101_lightningd_1
lightningd_1 | /entrypoint.sh: assuming arguments for lightningd
lightningd_1 | /entrypoint.sh: setting data directory to /home/clightning4j/.lightning
lightningd_1 |
lightningd_1 | 2021-08-25T14:56:53.869Z UNUSUAL lightningd: Creating configuration directory /home/clightning4j/.lightning/bitcoin
lightningd_1 | 2021-08-25T14:56:53.869Z INFO plugin-manager: /opt/clightning-v0.10.0/bin/../libexec/c-lightning/plugins/bcli: disabled via disable-plugin
lightningd_1 | 2021-08-25T14:56:53.869Z UNUSUAL lightningd: Creating configuration directory /home/clightning4j/.lightning/bitcoin
lightningd_1 | 2021-08-25T14:56:53.869Z DEBUG plugin-manager: blacklist for bcli
lightningd_1 | 2021-08-25T14:56:53.869Z INFO plugin-manager: /opt/clightning-v0.10.0/bin/../libexec/c-lightning/plugins/bcli: disabled via disable-plugin
lightningd_1 | lightningd: --jrest-on-startup: unrecognized option
0101_lightningd_1 exited with code 1
In the last release I used an experimental language like V, but now I'm thinking to migrate to more tested language like this script language https://github.com/xonsh/xonsh
I added too much dep here https://github.com/clightning4j/clightning4j-node/blob/main/v0.11.0/Dockerfile#L30 due to the new poetry stuff.
But I realized that just pip work better, and now I need to clean up the dependencies
plugin reference https://github.com/LNOpenMetrics/go-lnmetrics.reporter
At the moment the bash script is very stuping, and I think it can be more smarted than now (e.f if the lightning directory exist skip it)
Maybe @jsarenik can help here, I can buy a coffee (it is nothing because I haven't a possibility but it is only to sat thanks)
bash script location https://github.com/clightning4j/clightning4j-node/blob/main/0.10.1/entrypoint.sh
cln-lightningd-1 |
cln-lightningd-1 | Jul 02 18:51:46.319 [notice] Tor 0.4.7.8 running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1p, Zlib 1.2.12, Liblzma 5.2.5, Libzstd 1.4.9 and Unknown N/A as libc.
cln-lightningd-1 | Jul 02 18:51:46.319 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
cln-lightningd-1 | Jul 02 18:51:46.319 [warn] Tor was compiled with zstd 1.5.2, but is running with zstd 1.4.9. For safety, we'll avoid using advanced zstd functionality.
cln-lightningd-1 | Jul 02 18:51:46.320 [notice] Read configuration file "/etc/tor/torrc".
cln-lightningd-1 | Jul 02 18:51:46.322 [warn] CookieAuthFileGroupReadable is set, but will have no effect: you must specify an explicit CookieAuthFile to have it group-readable.
cln-lightningd-1 | Jul 02 18:51:46.336 [notice] Opening Socks listener on 127.0.0.1:9050
cln-lightningd-1 | Jul 02 18:51:46.336 [notice] Opened Socks listener connection (ready) on 127.0.0.1:9050
cln-lightningd-1 | Jul 02 18:51:46.336 [notice] Opening Control listener on 127.0.0.1:9051
cln-lightningd-1 | Jul 02 18:51:46.336 [notice] Opened Control listener connection (ready) on 127.0.0.1:9051
cln-lightningd-1 |
cln-lightningd-1 |
cln-lightningd-1 |
cln-lightningd-1 | cmd prepared is: lightningd --lightning-dir=/home/clightning4j/.lightning --network=testnet --alias=summer-of-bitcoin-clndart --disable-plugin=bcli --log-level=debug --jrest-port=7000 --jrest-on-startup --bind-addr=127.0.0.1:19735 --addr=64.227.65.113:19735 --proxy=127.0.0.1:9050 --addr=statictor:127.0.0.1:9051/torport=19735
cln-lightningd-1 | /usr/lib/python3.9/subprocess.py:941: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
cln-lightningd-1 | self.stdout = io.open(c2pread, 'rb', bufsize)
cln-lightningd-1 exited with code 0
@jsarenik Can you check what are the minimal dependencies needed to build the actual code with alpine
I added too much dep here https://github.com/clightning4j/clightning4j-node/blob/main/v0.11.0/Dockerfile#L30 due to the new poetry stuff.
But I realized that just pip work better, and now I need to clean up the dependeces
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.