Git Product home page Git Product logo

docker-clightning's Introduction

Core Lightning in a Docker container

pipeline status Build on tag Build on push Version Docker Pulls Count

What

Core Lightning by Elements Project in a docker container for easy orchestration on embedded devices (like the Raspberry Pi), and auto-building.

Why?

To do cross-platform builds the LNCM way, like some of my other containers

Mirrors

Where this code is maintained and mirrored (master branch).

Building

By Default

To simply build this project just invoke (This will build against latest tag)

docker build -t nolim1t/clightning .

Specifying a version

For example specifying a version to build.

docker build \
    --build-arg VERSION=v0.9.3 \
    -t nolim1t/clightning:v0.9.3 .

The other configurables you can use are:

  • REPO defines the master repo for lightning (eventually would like to make this fetch from TOR so the whole thing is anonymous)
  • USER defines the user name (Its cosmetic at this stage)
  • DATA defines the data folder for lightning user within the container

Running

For convenience, we have a sample docker-compose file and a sample config file you may use (this is based off the documentation on the upstream).

Or running straight from docker after building it:

# Assuming you have built it (This uses the similar parameters as the above docker-compose)
docker run -it --rm \
    --name clightning \
    -e LIGHTNINGD_NETWORK=bitcoin \
    -e LIGHTNINGD_RPC_PORT=10420 \
    -v $HOME/.lightning:/data/.lightning \
    -v $HOME/.bitcoin:/data/.bitcoin \
    lncm/clightning:v0.9.3

# or if using gitlab
docker run -it --rm \
    --name clightning \
    -e LIGHTNINGD_NETWORK=bitcoin \
    -e LIGHTNINGD_RPC_PORT=10420 \
    -v $HOME/.lightning:/data/.lightning \
    -v $HOME/.bitcoin:/data/.bitcoin \
    registry.gitlab.com/nolim1t/docker-clightning:v0.9.3-a5f53123

Todo

Most stuff is in the issues list however the below is kept for legacy purposes

  • Document how to build this project for more advanced users
  • Document how to use this container (config files, etc)
  • Build a docker compose file as an example
  • Build a gitlab action. Gitlab will be the main focus for this project
  • Build a github action. Github will be the secondary focus for this.
  • Extremely low priority. Get the other shitcoin stuff working (Litecoin)

docker-clightning's People

Contributors

aarondewes avatar nolim1t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-clightning's Issues

How to specify bitcoind address?

I'm trying to understand how this container works. I see that it installs bitcoin, but only the CLI part.

So how do you specify the IP address of your existing bitcoind node?

Umbrel support

Hi , I want to use this on Umbrel but failed because of env issues.
For example when I try to install with cargo install --locked --path=watchtower-plugin,
I ve got an env_logger version error.
I guess the cargo is 1.46 which is much lower
How can I resolve this issue ? Any ideas?

Update to v11

Can this container be updated to v11.1 if its not too much work for you? Would appreciate it!

Permission denied

If I bind the lightning directory to a local directory, Im getting permission denied when starting the container. It cannot create the directory bitcoin inside of it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.