mirror of
https://github.com/bitromortac/lndmanage.git
synced 2026-08-13 12:33:37 +02:00
Merge pull request #14 from darwin/minor-docker-improvements
Minor docker improvements
This commit is contained in:
commit
f025efa19a
3 changed files with 37 additions and 26 deletions
24
README.md
24
README.md
|
|
@ -138,29 +138,7 @@ If if works, you should see the node status.
|
|||
Docker
|
||||
------
|
||||
|
||||
If you prefer to run the tool from a docker container:
|
||||
```sh
|
||||
cd docker
|
||||
|
||||
# build the container
|
||||
./build.sh
|
||||
|
||||
# prior running the container you must specify LND_HOME or ADMIN_MACAROON_FILE and TLS_CERT_FILE
|
||||
export TLS_CERT_FILE=$HOME/.lnd/tls.cert
|
||||
export ADMIN_MACAROON_FILE=$HOME/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
|
||||
|
||||
# you might want to specify LND_GRPC_HOST as well
|
||||
# look into _settings.sh for more details on container configuration
|
||||
|
||||
# run lndmanage inside a container via this wrapper script:
|
||||
./lndmanage.sh status
|
||||
```
|
||||
|
||||
To start from scratch:
|
||||
```sh
|
||||
./clean.sh
|
||||
./build.sh --no-cache
|
||||
```
|
||||
If you prefer to run `lndmanage` from a docker container, `cd docker` and follow [`README`](docker/README.md) there.
|
||||
|
||||
Compiling grpc in python [development]
|
||||
----------------------------------------------------
|
||||
|
|
|
|||
33
docker/README.md
Normal file
33
docker/README.md
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
## Docker
|
||||
|
||||
To run `lndmanage` from a docker container:
|
||||
|
||||
```sh
|
||||
# you should first review ./lndmanage/home/config_template.ini
|
||||
# note that paths are relevant to situation inside docker and we run under root
|
||||
# so $HOME directory is /root
|
||||
|
||||
# build the container
|
||||
./build.sh
|
||||
|
||||
# if you have local lnd node on host machine, point LND_HOME to your actual lnd directory:
|
||||
export LND_HOME=~/.lnd
|
||||
|
||||
# or alternatively if you have remote lnd node, specify paths to auth files explicitly:
|
||||
# export TLS_CERT_FILE=/path/to/tls.cert
|
||||
# export ADMIN_MACAROON_FILE=/path/to/admin.macaroon
|
||||
# export LND_GRPC_HOST=<remoteip>:10009
|
||||
|
||||
# look into _settings.sh for more details on container configuration
|
||||
|
||||
# run lndmanage from the container:
|
||||
./lndmanage.sh status
|
||||
|
||||
# lndmanage cache will be mapped to host folder at ./_volumes/lndmanage-cache
|
||||
```
|
||||
|
||||
To start from scratch:
|
||||
```sh
|
||||
./clean.sh
|
||||
./build.sh --no-cache
|
||||
```
|
||||
|
|
@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
|
|||
. _settings.sh
|
||||
|
||||
if [[ $# -eq 0 ]]; then
|
||||
exec ./lndmanage.sh inspect ${PREFERRED_SHELL}
|
||||
else
|
||||
exec ./lndmanage.sh inspect "$@"
|
||||
set -- ${PREFERRED_SHELL}
|
||||
fi
|
||||
|
||||
exec ./lndmanage.sh inspect "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue