mirror of
https://github.com/status-im/spiffworkflow-connector.git
synced 2025-02-22 19:48:07 +00:00
hack up status-go so it works until we get a commandline flag, and add docs
This commit is contained in:
parent
ef9b49fbca
commit
fff8ae945f
@ -6,6 +6,8 @@ function error_handler() {
|
||||
}
|
||||
trap 'error_handler ${LINENO} $?' ERR
|
||||
set -o errtrace -o errexit -o nounset -o pipefail
|
||||
|
||||
spiff_subdomain="${1:-}"
|
||||
set -x
|
||||
|
||||
script_dir="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||
@ -21,6 +23,23 @@ git clone https://github.com/status-im/status-go.git "${home_tmp_dir}${tmp_dir}/
|
||||
cd "${home_tmp_dir}${tmp_dir}/status-go"
|
||||
git checkout feature/spiff-workflow
|
||||
|
||||
echo "PERLSRSTUFF"
|
||||
if [[ -n "$spiff_subdomain" ]]; then
|
||||
echo "PERLSRSTUFF: found $spiff_subdomain"
|
||||
waku_node_host="${spiff_subdomain}.spiffworkflow.org"
|
||||
file_to_patch="cmd/spiffworkflow/main.go"
|
||||
if [[ ! -f "$file_to_patch" ]]; then
|
||||
>&2 echo "ERROR: expected $file_to_patch to exist"
|
||||
exit 1
|
||||
fi
|
||||
perl -pi -e "s/\{\"localhost\", \"wakunode\"\}/{\"localhost\", \"wakunode\", \"$waku_node_host\"}/" "$file_to_patch"
|
||||
if ! grep -Eq "localhost.*wakunode.*$waku_node_host" "$file_to_patch"; then
|
||||
>&2 echo "ERROR: expected to find 'localhost.*wakunode.*$waku_node_host' in $file_to_patch"
|
||||
exit 1
|
||||
fi
|
||||
echo "PERLSRSTUFF: done"
|
||||
fi
|
||||
|
||||
cp "${script_dir}/../Dockerfile" .
|
||||
docker build -t spiffworkflow-waku-node:latest .
|
||||
|
||||
|
1
connectors/connector-waku/bin/testwakunode2
Normal file
1
connectors/connector-waku/bin/testwakunode2
Normal file
@ -0,0 +1 @@
|
||||
curl http://wakunode2.spiffworkflow.org -XPOST -H 'content-type: application/json' -d '{"jsonrpc":"2.0","method":"wakuext_sendOneToOneMessage","params":[{"id": "zQ3shh9nNUbuLzjzvjgUwxAKb3HEDMrVrNzyTW1ZUrFgcLhxc", "message": "hello dude what is happening now"}],"id":1}'
|
Loading…
x
Reference in New Issue
Block a user