diff options
| author | Dan Rostovtsev <dan@rostovtsev.org> | 2026-03-16 16:02:54 -0400 |
|---|---|---|
| committer | Dan Rostovtsev <dan@rostovtsev.org> | 2026-03-16 16:02:54 -0400 |
| commit | 2c6cf786c151118232533a6cfbc769ce1514aa9e (patch) | |
| tree | 0dc171e25f46ea491f98f4a4a96b94e69defea89 /scripts | |
Simple bash script deployment of client portal gateway.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/deploy.bash | 19 | ||||
| -rwxr-xr-x | scripts/keepalive.bash | 7 | ||||
| -rwxr-xr-x | scripts/tickle.py | 5 |
3 files changed, 31 insertions, 0 deletions
diff --git a/scripts/deploy.bash b/scripts/deploy.bash new file mode 100755 index 0000000..0fd8193 --- /dev/null +++ b/scripts/deploy.bash @@ -0,0 +1,19 @@ +#!/usr/bin/bash + +set -e + +# create env +TMP=`mktemp -t -d ibkr-cpgw.XXXXXX` +mkdir -p $TMP +cp resources/clientportal.gw.zip $TMP +cp resources/custom.yaml $TMP + +# build env +cd $TMP +unzip clientportal.gw.zip +cp custom.yaml ./root/custom.yaml + +# run gateway +./bin/run.sh ./root/custom.yaml + +rm -rf $TMP diff --git a/scripts/keepalive.bash b/scripts/keepalive.bash new file mode 100755 index 0000000..3b2a1ae --- /dev/null +++ b/scripts/keepalive.bash @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +while [ 0 ]; do + ./scripts/tickle.py + echo teehee + sleep 60 +done diff --git a/scripts/tickle.py b/scripts/tickle.py new file mode 100755 index 0000000..59902d0 --- /dev/null +++ b/scripts/tickle.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +import requests + +requests.get("http://localhost:5000/v1/api/tickle") |
