You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
730 B
30 lines
730 B
4 years ago
|
#!/usr/bin/env bash
|
||
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||
|
bash "$DIR/kill_node.sh"
|
||
|
|
||
|
docker_name="harmony-localnet-test"
|
||
|
|
||
|
case ${1} in
|
||
|
run)
|
||
|
docker pull harmonyone/localnet-test
|
||
|
docker rm "$docker_name"
|
||
4 years ago
|
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/harmony-one/harmony" harmonyone/localnet-test -r -k
|
||
4 years ago
|
;;
|
||
|
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
|
||
|
|