Fixed cln directory and some permission issues

This commit is contained in:
kexkey
2018-10-11 16:02:15 -04:00
parent 7f9ebe6bb0
commit 74e4fc9fbf
4 changed files with 8 additions and 5 deletions

View File

@@ -12,11 +12,12 @@ services:
# Variable substitutions don't work # Variable substitutions don't work
# Match with DB_PATH in proxy_docker/env.properties # Match with DB_PATH in proxy_docker/env.properties
- "~/btcproxydb:/proxy/db" - "~/btcproxydb:/proxy/db"
- "~/lndata:/proxy/.lightning" # c-lightning looks for $HOME/.lightning/, and $HOME is set to / in the container
- "~/lndata:/.lightning"
# deploy: # deploy:
# placement: # placement:
# constraints: [node.hostname==dev] # constraints: [node.hostname==dev]
command: $USER /proxy/startproxy.sh command: $USER ./startproxy.sh
networks: networks:
- cyphernodenet - cyphernodenet
@@ -41,7 +42,7 @@ services:
# deploy: # deploy:
# placement: # placement:
# constraints: [node.hostname==dev] # constraints: [node.hostname==dev]
command: $USER /pycoin/startpycoin.sh command: $USER ./startpycoin.sh
networks: networks:
- cyphernodenet - cyphernodenet

View File

@@ -38,6 +38,7 @@ COPY app/bin/lightning-cli_x86 ${HOME}/lightning-cli
WORKDIR ${HOME} WORKDIR ${HOME}
RUN chmod +x startproxy.sh requesthandler.sh lightning-cli \ RUN chmod +x startproxy.sh requesthandler.sh lightning-cli \
&& chmod o+w . \
&& mkdir db && mkdir db
VOLUME ["${HOME}/db", "${HOME}/.lightning"] VOLUME ["${HOME}/db", "${HOME}/.lightning"]

View File

@@ -3,13 +3,13 @@
trace() trace()
{ {
if [ -n "${TRACING}" ]; then if [ -n "${TRACING}" ]; then
echo "$(date -Is) ${1}" > /dev/stderr echo "$(date -Is) ${1}" 1>&2
fi fi
} }
trace_rc() trace_rc()
{ {
if [ -n "${TRACING}" ]; then if [ -n "${TRACING}" ]; then
echo "$(date -Is) Last return code: ${1}" > /dev/stderr echo "$(date -Is) Last return code: ${1}" 1>&2
fi fi
} }

View File

@@ -3,6 +3,7 @@ WATCHER_BTC_NODE_RPC_URL=btcnode:18332/wallet/watching01.dat
SPENDER_BTC_NODE_RPC_URL=btcnode:18332/wallet/spending01.dat SPENDER_BTC_NODE_RPC_URL=btcnode:18332/wallet/spending01.dat
PROXY_LISTENING_PORT=8888 PROXY_LISTENING_PORT=8888
# Variable substitutions don't work # Variable substitutions don't work
HOME=/proxy
DB_PATH=/proxy/db DB_PATH=/proxy/db
DB_FILE=/proxy/db/proxydb DB_FILE=/proxy/db/proxydb
# Pycoin container # Pycoin container