Merge branch 'main' of github.com:sartography/connector-proxy-status-im

This commit is contained in:
jasquat 2023-02-22 17:04:23 -05:00
commit c29dff074a
No known key found for this signature in database
2 changed files with 20 additions and 0 deletions

View File

@ -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/spiff-workflow/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 .

View 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}'