diff --git a/README.md b/README.md index b38d565..1fd0919 100644 --- a/README.md +++ b/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] ---------------------------------------------------- diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 0000000..d16e2de --- /dev/null +++ b/docker/README.md @@ -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=: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 +``` diff --git a/docker/inspect.sh b/docker/inspect.sh index 1d2309e..233c627 100755 --- a/docker/inspect.sh +++ b/docker/inspect.sh @@ -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 "$@"