This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from dbluhm/fix/ngrok
fix: replace ngrok with localtunnel
- Loading branch information
Showing
7 changed files
with
55 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
TUNNEL_HOST=${TUNNEL_HOST:-tunnel} | ||
TUNNEL_PORT=${TUNNEL_PORT:-4040} | ||
|
||
echo "tunnel end point [$TUNNEL_HOST:$TUNNEL_PORT]" | ||
|
||
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' "${TUNNEL_HOST}:${TUNNEL_PORT}/status")" != "200" ]]; do | ||
echo "Waiting for tunnel..." | ||
sleep 1 | ||
done | ||
ACAPY_ENDPOINT=$(curl --silent "${TUNNEL_HOST}:${TUNNEL_PORT}/start" | ./jq -r '.url') | ||
echo "fetched end point [$ACAPY_ENDPOINT]" | ||
|
||
export ACAPY_ENDPOINT="[$ACAPY_ENDPOINT, ${ACAPY_ENDPOINT/http/ws}]" | ||
#export ACAPY_ENDPOINT="$ACAPY_ENDPOINT" | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
version: "3" | ||
services: | ||
ngrok-mediator: | ||
image: wernight/ngrok | ||
command: ngrok http agent-mediator:3004 --log stdout | ||
tunnel-mediator: | ||
image: reflectivedevelopment/agent-tunnel | ||
command: agent-mediator:3004 -p 4040 --host ${AGENT_TUNNEL_HOST} | ||
agent-mediator: | ||
image: acapy-toolbox-ngrok | ||
image: acapy-toolbox-tunnel | ||
build: | ||
context: ../ | ||
dockerfile: ./demo/Dockerfile.demo | ||
environment: | ||
NGROK_NAME: ngrok-mediator | ||
TUNNEL_HOST: tunnel-mediator | ||
TUNNEL_PORT: 4040 | ||
ports: | ||
- "3005:3005" | ||
command: poetry run aca-py start --arg-file ./configs/mediator.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
version: "3" | ||
services: | ||
ngrok: | ||
image: wernight/ngrok | ||
command: ngrok http agent:3000 --log stdout | ||
tunnel: | ||
image: reflectivedevelopment/agent-tunnel | ||
command: agent:3000 -p 4040 --host ${AGENT_TUNNEL_HOST} | ||
ports: | ||
- 4040:4040 | ||
agent: | ||
image: acapy-toolbox-ngrok | ||
image: acapy-toolbox-tunnel | ||
build: | ||
context: ../ | ||
dockerfile: ./demo/Dockerfile.demo | ||
environment: | ||
NGROK_NAME: ngrok | ||
TUNNEL_HOST: tunnel | ||
TUNNEL_PORT: 4040 | ||
ports: | ||
- "3001:3001" |
This file was deleted.
Oops, something went wrong.