Remove obsolete faucet scripts
This commit is contained in:
parent
8921b5c20a
commit
c666f30fd2
@ -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"
|
||||
@ -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"
|
||||
Loading…
Reference in New Issue
Block a user