mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 21:57:16 +00:00
c2d4f5b2b8
* Create scripts for k8s and standard runs * Add comment * Create scripts to deploy contract, start beacon chain and validators * Add placeholders * Add more docs and remove uneeded tag
25 lines
656 B
Bash
Executable File
25 lines
656 B
Bash
Executable File
#!/bin/sh
|
|
|
|
DATA_PATH=/tmp/data
|
|
PASSWORD_PATH=$DATA_PATH/password.txt
|
|
PASSWORD="password"
|
|
|
|
echo $PASSWORD > $PASSWORD_PATH
|
|
|
|
bazel build //validator
|
|
|
|
for i in `seq 1 8`;
|
|
do
|
|
KEYSTORE=$DATA_PATH/keystore$i
|
|
|
|
UNAME=$(echo `uname` | tr '[A-Z]' '[a-z]')
|
|
CMD="bazel-bin/validator/"
|
|
CMD+=$UNAME
|
|
CMD+="_amd64_pure_stripped/validator --demo-config --password $PASSWORD_PATH --keystore-path $KEYSTORE"
|
|
|
|
nohup $CMD $> /tmp/validator$i.log &
|
|
done
|
|
|
|
echo "8 validators are running in the background. You can follow their logs at /tmp/validator#.log where # is replaced by the validator index of 1 through 8."
|
|
|
|
echo "To stop the processes, use 'pkill validator'" |