Skip to content

Commit

Permalink
demos: apple: Add bash scripts
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny committed Nov 20, 2023
1 parent 3943d28 commit 6d5be7f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions demos/apple/alice.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
jq < ${HOME}/Documents/fediverse/scitt_federation_alice/config.json \
&& sleep 2 \
&& scitt-emulator server \
--workspace ${HOME}/Documents/fediverse/scitt_federation_alice/workspace_alice/ \
--tree-alg CCF \
--port 7000 \
--middleware scitt_emulator.federation_activitypub_bovine:SCITTFederationActivityPubBovine \
--middleware-config-path ${HOME}/Documents/fediverse/scitt_federation_alice/config.json
4 changes: 4 additions & 0 deletions demos/apple/bob-webhook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
gh webhook forward \
--repo=pdxjohnny/scitt-api-emulator \
--events=push \
--url=https://scitt.bob.chadig.com/github-webhook-notary/
12 changes: 12 additions & 0 deletions demos/apple/bob.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
jq < ${HOME}/Documents/fediverse/scitt_federation_bob/config.json \
&& sleep 2 \
&& scitt-emulator server \
--workspace ${HOME}/Documents/fediverse/scitt_federation_bob/workspace_bob/ \
--tree-alg CCF \
--port 6000 \
--middleware \
scitt_emulator.federation_activitypub_bovine:SCITTFederationActivityPubBovine \
scitt_emulator.github_webhook_notary:GitHubWebhookNotaryMiddleware \
--middleware-config-path \
${HOME}/Documents/fediverse/scitt_federation_bob/config.json \
-
3 changes: 3 additions & 0 deletions demos/apple/get_statement_from_alice.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl -sfL https://github.com/scitt-community/scitt-api-emulator/archive/$(git log -n 1 --format=%H).tar.gz | sha384sum - | awk '{print $1}'

scitt-emulator client retrieve-claim --entry-id sha384:fe1952f763cf8947b6bc49902d7ec5f4a006c9358d2c6349b07896bf0967ebb7395eba7b30c9b7896b4096bc140a5f42 --url https://scitt.unstable.chadig.com --out webhook.push.cose

0 comments on commit 6d5be7f

Please sign in to comment.