From f44ef8f3dec1b3d2035807aea1e74b7d8b5209c8 Mon Sep 17 00:00:00 2001 From: vdo Date: Wed, 3 Apr 2019 16:04:34 +0200 Subject: [PATCH] without expect, just file --- build/Dockerfile | 2 +- build/init.sh | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 66c3605..9832421 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -7,7 +7,7 @@ ENV RAIDEN_ENVIRONMENT_TYPE=production ENV RAIDEN_API_ADDRESS=0.0.0.0:80 ENV RAIDEN_ETH_RPC_ENDPOINT=http://my.ethchain.dnp.dappnode.eth:8545 -RUN apk update && apk add --no-cache wget expect +RUN apk update && apk add --no-cache wget RUN wget https://github.com/raiden-network/raiden/releases/download/v${RAIDEN_VERSION}/raiden-v${RAIDEN_VERSION}-linux-x86_64.tar.gz \ -qO- | tar -C /usr/bin -xzvf - diff --git a/build/init.sh b/build/init.sh index 604e316..4bfbab2 100755 --- a/build/init.sh +++ b/build/init.sh @@ -2,12 +2,8 @@ # Check if password is set, and at least one file has been uploaded if [ ! -z ${RAIDEN_ADDRESS} ] && [ ! -z ${RAIDEN_KEYSTORE_PASSWORD} ] && [ `find . -maxdepth 1 -type f | wc -l` -gt 0 ]; then - expect -c "spawn raiden --keystore-path . --accept-disclaimer; - sleep 3; - expect -re \"password\"; - send \"${RAIDEN_KEYSTORE_PASSWORD}\r\n\"; - set timeout -1; - expect -re \"100%\";" + echo "${RAIDEN_KEYSTORE_PASSWORD}" > .password + raiden --keystore-path . --accept-disclaimer --password-file .password else echo echo "########################################################"