Add usable dockerfile to clightning - #1187
Conversation
|
Example of dockerfile using it: |
a3dd997 to
8638f76
Compare
There was a problem hiding this comment.
I don't think we should provide a docker image that exposes the RPC interface without any form of authentication to the world. lightningd does not have any authentication simply because we want higher up layers to implement whatever the environment it is running in requires.
Even if we were to host the dockerfile, it should be in contrib/ not the root directory.
So for me this is a NACK.
| @@ -0,0 +1,4 @@ | |||
| # Declare files that will always have CRLF line endings on checkout. | |||
|
If you want to use as a rest api pip install lightning-rest or docker run -it --rm -p 8000:8000 -v /path/to/lightning-rpc:/tmp/lightning-rpc siriuslabs/lightning-rest 8000 /tmp/lightning-rpc |
This is exactly what I want to do... except that it is impossible without an hell of pain because I am on windows. I can't just code in visual studio and connect to clightning.
This is cool. Though my use case is to use TCP only for dev time purposes, this should go away in prod by using shared volumes as you are doing. |
|
closing this, will maintain my own |
@cdecker, you are providing a dockerfile on https://hub.docker.com/r/cdecker/lightningd .
Sadly, this docker file is useless for developers as it is impossible to connect to the RPC unix domain socket.
This PR propose a
Dockerfilewhich expose clightning on TCP withsocat. This allow developers not using linux to still develop stuff on top of CLightning by dockerizing the app and connecting via TCP.It will also simplify
lightning-chargewhich currently is starting clightning and charge in the same container though a very hacky manner.This port is not meant to be mapped to the host (except for testing) for obvious security reasons.