From 2c6cf786c151118232533a6cfbc769ce1514aa9e Mon Sep 17 00:00:00 2001 From: Dan Rostovtsev Date: Mon, 16 Mar 2026 16:02:54 -0400 Subject: Simple bash script deployment of client portal gateway. --- scripts/deploy.bash | 19 +++++++++++++++++++ scripts/keepalive.bash | 7 +++++++ scripts/tickle.py | 5 +++++ 3 files changed, 31 insertions(+) create mode 100755 scripts/deploy.bash create mode 100755 scripts/keepalive.bash create mode 100755 scripts/tickle.py (limited to 'scripts') 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") -- cgit v1.3