forked from cerc-io/stack-orchestrator
Nabarun Gogoi
c4002dcc5c
* Use standalone mobymask-v2-watcher-ts to run peer test * Add watcher-ts image for running peer tests * Run separate containers for peer ids generation and tests * Wait for watcher to be up before starting peer-test-app * Resolve peer-test-app compose file and remove setup-repositories for web-apps
21 lines
532 B
Bash
Executable File
21 lines
532 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
|
set -x
|
|
fi
|
|
|
|
# Check for peer ids in ./peers folder, create if not present
|
|
if [ -f /peer-ids/relay-id.json ]; then
|
|
echo "Using peer id for relay node from the mounted volume"
|
|
else
|
|
echo "Creating a new peer id for relay node"
|
|
yarn create-peer -f /peer-ids/relay-id.json
|
|
fi
|
|
|
|
if [ -f /peer-ids/peer-id.json ]; then
|
|
echo "Using peer id for peer node from the mounted volume"
|
|
else
|
|
echo "Creating a new peer id for peer node"
|
|
yarn create-peer -f /peer-ids/peer-id.json
|
|
fi
|