summaryrefslogtreecommitdiff
path: root/scripts/start-gateway.bash
blob: 0fd8193024c936cfd3689b925d5a5afdbb0bcd61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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