#!/usr/bin/env bash DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" bash "$DIR/kill_node.sh" docker_name="woop-localnet-test" case ${1} in run) docker pull woopchain/localnet-test docker rm "$docker_name" docker run -it --name "$docker_name" \ -p 9500:9500 -p 9501:9501 -p 9599:9599 -p 9598:9598 -p 9799:9799 -p 9798:9798 -p 9899:9899 -p 9898:9898 \ -v "$DIR/../:/go/src/github.com/woop-chain/woop" woopchain/localnet-test -n -k ;; attach) docker exec -it "$docker_name" /bin/bash ;; *) echo " Node API tests Param: Help: run Run the Node API tests attach Attach onto the Node API testing docker image for inspection " exit 0 ;; esac