Browse Source

fix(clightning): update c-lightning dockerfile

master
jamaljsr 5 years ago
parent
commit
def308423b
  1. 9
      docker/README.md
  2. 2
      docker/clightning/Dockerfile
  3. 2
      src/lib/lightning/clightning/clightningService.ts

9
docker/README.md

@ -14,7 +14,7 @@ _Warning: These images are not hardened and shouldn't be used to store real bitc
```sh
$ cd bitcoind
$ docker build --build-arg BITCOIN_VERSION=<version> -t polarlightning/bitcoind:latest -t polarlightning/bitcoind:<version> .
$ docker build --build-arg BITCOIN_VERSION=<version> -t polarlightning/bitcoind:<version> .
```
Replace `<version>` with the desired bitcoind version (ex: `0.18.1`)
@ -23,7 +23,6 @@ Replace `<version>` with the desired bitcoind version (ex: `0.18.1`)
```sh
$ docker push polarlightning/bitcoind:<version>
$ docker push polarlightning/bitcoind:latest
```
## LND
@ -37,7 +36,7 @@ $ docker push polarlightning/bitcoind:latest
```sh
$ cd lnd
$ docker build --build-arg LND_VERSION=<version> -t polarlightning/lnd:latest -t polarlightning/lnd:<version> .
$ docker build --build-arg LND_VERSION=<version> -t polarlightning/lnd:<version> .
```
Replace `<version>` with the desired LND version (ex: `0.8.0-beta`)
@ -46,7 +45,6 @@ Replace `<version>` with the desired LND version (ex: `0.8.0-beta`)
```sh
$ docker push polarlightning/lnd:<version>
$ docker push polarlightning/lnd:latest
```
## c-lightning
@ -59,7 +57,7 @@ $ docker push polarlightning/lnd:latest
```sh
$ cd clightning
$ docker build --build-arg CLN_VERSION=<version> -t polarlightning/clightning:latest -t polarlightning/clightning:<version> .
$ docker build --build-arg CLN_VERSION=<version> -t polarlightning/clightning:<version> .
```
Replace `<version>` with the desired c-lightning version (ex: `0.7.3`).
@ -68,5 +66,4 @@ Replace `<version>` with the desired c-lightning version (ex: `0.7.3`).
```sh
$ docker push polarlightning/clightning:<version>
$ docker push polarlightning/clightning:latest
```

2
docker/clightning/Dockerfile

@ -134,7 +134,7 @@ RUN apt-get update -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# install c-lightning-REST API plugin
RUN git clone --branch=feat/funding-allocation-msat https://github.com/jamaljsr/c-lightning-rest /opt/c-lightning-rest/ \
RUN git clone https://github.com/ride-the-lightning/c-lightning-rest /opt/c-lightning-rest/ \
&& cd /opt/c-lightning-rest \
&& npm install \
&& chmod -R a+rw /opt/c-lightning-rest

2
src/lib/lightning/clightning/clightningService.ts

@ -141,7 +141,7 @@ class CLightningService implements LightningService {
const body: CLN.InvoiceRequest = {
amount: amount * 1000,
label: new Date().getTime().toString(),
description: memo || `Polar Invoice for ${node.name}}`,
description: memo || `Polar Invoice for ${node.name}`,
};
const res = await httpPost<CLN.InvoiceResponse>(

Loading…
Cancel
Save