Remove obsolete faucet scripts

This commit is contained in:
Simon Warta 2020-01-29 14:57:18 +01:00
parent 8921b5c20a
commit c666f30fd2
2 changed files with 0 additions and 34 deletions

View File

@ -1,25 +0,0 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail
command -v shellcheck > /dev/null && shellcheck "$0"
# Choose from https://hub.docker.com/r/iov1/iov-faucet/tags/
FAUCET_VERSION="v0.8.1"
TMP_DIR=$(mktemp -d "${TMPDIR:-/tmp}/faucet_start.XXXXXXXXX")
LOGFILE="$TMP_DIR/faucet.log"
DOCKER_HOST_IP=$(docker run --rm alpine ip route | awk 'NR==1 {print $3}')
BLOCKCHAIN_URL="ws://$DOCKER_HOST_IP:23456"
echo "Connecting to $BLOCKCHAIN_URL"
docker run --rm \
--read-only \
--env "FAUCET_CONCURRENCY=3" \
--env "FAUCET_MNEMONIC=degree tackle suggest window test behind mesh extra cover prepare oak script" \
-p 8000:8000 \
"iov1/iov-faucet:${FAUCET_VERSION}" \
start bns "$BLOCKCHAIN_URL" \
> "$LOGFILE" &
echo "Faucet running and logging into $LOGFILE"

View File

@ -1,9 +0,0 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail
command -v shellcheck > /dev/null && shellcheck "$0"
LABEL_PART="iov1/iov-faucet"
CONTAINER_ID=$(docker container ls | grep -F "$LABEL_PART:" | awk '{print $1}')
echo "Killing $LABEL_PART container '$CONTAINER_ID' ..."
docker container kill "$CONTAINER_ID"