scripted-diff: replace ⛰ emoji with $ [skip ci]
-BEGIN VERIFY SCRIPT- sed -i 's/⛰/$/g' $(git grep -l '⛰') -END VERIFY SCRIPT-
This commit is contained in:
36 files changed
+239
-239
No files matched your search
+18
-18
@@ -13,7 +13,7 @@ To build a standalone development image from the local source directory, use the
|
||||
following command:
|
||||
|
||||
```shell
|
||||
⛰ docker build --tag=myrepository/lnd-dev -f dev.Dockerfile .
|
||||
$ docker build --tag=myrepository/lnd-dev -f dev.Dockerfile .
|
||||
```
|
||||
|
||||
There is also a `docker-compose` setup available for development or testing that
|
||||
@@ -29,7 +29,7 @@ Docker container, adding the appropriate command-line options as parameters.
|
||||
You first need to build the `lnd` docker image:
|
||||
|
||||
```shell
|
||||
⛰ docker build --tag=myrepository/lnd --build-arg checkout=v0.14.1-beta .
|
||||
$ docker build --tag=myrepository/lnd --build-arg checkout=v0.14.1-beta .
|
||||
```
|
||||
|
||||
It is recommended that you checkout the latest released tag.
|
||||
@@ -37,7 +37,7 @@ It is recommended that you checkout the latest released tag.
|
||||
You can continue by creating and running the container:
|
||||
|
||||
```shell
|
||||
⛰ docker run myrepository/lnd [command-line options]
|
||||
$ docker run myrepository/lnd [command-line options]
|
||||
```
|
||||
|
||||
## Production (official images)
|
||||
@@ -49,8 +49,8 @@ images of `lnd` available in the
|
||||
You can just pull those images by specifying a release tag:
|
||||
|
||||
```shell
|
||||
⛰ docker pull lightninglabs/lnd:v0.14.1-beta
|
||||
⛰ docker run lightninglabs/lnd [command-line options]
|
||||
$ docker pull lightninglabs/lnd:v0.14.1-beta
|
||||
$ docker run lightninglabs/lnd [command-line options]
|
||||
```
|
||||
|
||||
Note that **`daily-*` tags are unstable and not for production use**.
|
||||
@@ -64,10 +64,10 @@ script in the image that can be called (before starting the container for
|
||||
example):
|
||||
|
||||
```shell
|
||||
⛰ docker run --rm --entrypoint="" lightninglabs/lnd:v0.14.1-beta /verify-install.sh v0.14.1-beta
|
||||
⛰ OK=$?
|
||||
⛰ if [ "$OK" -ne "0" ]; then echo "Verification failed!"; exit 1; done
|
||||
⛰ docker run lightninglabs/lnd:v0.14.1-beta [command-line options]
|
||||
$ docker run --rm --entrypoint="" lightninglabs/lnd:v0.14.1-beta /verify-install.sh v0.14.1-beta
|
||||
$ OK=$?
|
||||
$ if [ "$OK" -ne "0" ]; then echo "Verification failed!"; exit 1; done
|
||||
$ docker run lightninglabs/lnd:v0.14.1-beta [command-line options]
|
||||
```
|
||||
|
||||
## Volumes
|
||||
@@ -78,7 +78,7 @@ persist through container restarts.
|
||||
You can also optionally manually specify a local folder to be used as a volume:
|
||||
|
||||
```shell
|
||||
⛰ docker create --name=mylndcontainer -v /media/lnd-docker/:/root/.lnd myrepository/lnd [command-line options]
|
||||
$ docker create --name=mylndcontainer -v /media/lnd-docker/:/root/.lnd myrepository/lnd [command-line options]
|
||||
```
|
||||
|
||||
## Example
|
||||
@@ -86,19 +86,19 @@ You can also optionally manually specify a local folder to be used as a volume:
|
||||
Here is an example testnet `lnd` that uses Neutrino:
|
||||
|
||||
```shell
|
||||
⛰ docker run --name lnd-testnet myrepository/lnd --bitcoin.active --bitcoin.testnet --bitcoin.node=neutrino --neutrino.connect=faucet.lightning.community
|
||||
$ docker run --name lnd-testnet myrepository/lnd --bitcoin.active --bitcoin.testnet --bitcoin.node=neutrino --neutrino.connect=faucet.lightning.community
|
||||
```
|
||||
|
||||
Create a wallet (and write down the seed):
|
||||
|
||||
```shell
|
||||
⛰ docker exec -it lnd-testnet lncli create
|
||||
$ docker exec -it lnd-testnet lncli create
|
||||
```
|
||||
|
||||
Confirm `lnd` has begun to synchronize:
|
||||
|
||||
```shell
|
||||
⛰ docker logs lnd-testnet
|
||||
$ docker logs lnd-testnet
|
||||
[snipped]
|
||||
2018-05-01 02:28:01.201 [INF] RPCS: RPC server listening on 127.0.0.1:10009
|
||||
2018-05-01 02:28:01.201 [INF] LTND: Waiting for chain backend to finish sync, start_height=2546
|
||||
@@ -115,29 +115,29 @@ to expose RPC ports, use `btcd` or `bitcoind`, or add additional chains.
|
||||
To test the Docker production image locally, run the following from the project root:
|
||||
|
||||
```shell
|
||||
⛰ docker build . -t myrepository/lnd:master
|
||||
$ docker build . -t myrepository/lnd:master
|
||||
```
|
||||
|
||||
To choose a specific [branch](https://github.com/lightningnetwork/lnd/branches) or [tag](https://hub.docker.com/r/lightninglabs/lnd/tags?page=1&ordering=last_updated) instead, use the `checkout` build-arg. For example, to build the latest tagged commit:
|
||||
|
||||
```shell
|
||||
⛰ docker build . --build-arg checkout=v0.14.1-beta -t myrepository/lnd:v0.14.1-beta
|
||||
$ docker build . --build-arg checkout=v0.14.1-beta -t myrepository/lnd:v0.14.1-beta
|
||||
```
|
||||
|
||||
To build the image using the most current tag:
|
||||
|
||||
```shell
|
||||
⛰ docker build . --build-arg checkout=$(git describe --tags `git rev-list --tags --max-count=1`) -t myrepository/lnd:latest-tag
|
||||
$ docker build . --build-arg checkout=$(git describe --tags `git rev-list --tags --max-count=1`) -t myrepository/lnd:latest-tag
|
||||
```
|
||||
|
||||
You can also specify a different repo than the default (`https://github.com/lightningnetwork/lnd`) using the `git_url` build-arg:
|
||||
|
||||
```shell
|
||||
⛰ docker build . --build-arg git_url=https://git.example.com/lnd.git --build-arg checkout=mybranch -t myrepository/lnd:v0.13.0-beta
|
||||
$ docker build . --build-arg git_url=https://git.example.com/lnd.git --build-arg checkout=mybranch -t myrepository/lnd:v0.13.0-beta
|
||||
```
|
||||
|
||||
Once the image has been built and tagged locally, start the container:
|
||||
|
||||
```shell
|
||||
⛰ docker run --name=lnd-testnet -it myrepository/lnd:latest-tag --bitcoin.active --bitcoin.testnet --bitcoin.node=neutrino --neutrino.connect=faucet.lightning.community
|
||||
$ docker run --name=lnd-testnet -it myrepository/lnd:latest-tag --bitcoin.active --bitcoin.testnet --bitcoin.node=neutrino --neutrino.connect=faucet.lightning.community
|
||||
```
|
||||
Reference in new issue
Block a user