From 67e98e3a9a5b5f77b39f9fde4a492f61620e43a1 Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Mon, 4 Mar 2019 11:41:37 +1100
Subject: [PATCH] problems starting

---
 Dockerfile               | 4 ++--
 TWS/twsproxy/__main__.py | 2 +-
 runscript                | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 3a437e5..f8d2dc6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,10 +6,10 @@ RUN apt install -y python3 gcc python3-pip
 RUN pip3 install -r requirements.txt
 RUN pwd
 RUN ls
-RUN python3 ./TES/setup.py install
+RUN cd TES ; python3 ./setup.py install
 RUN pwd
 RUN ls
-RUN python3 ./TWS/setup.py install
+RUN cd TWS ; python3 ./setup.py install
 EXPOSE 8080
 EXPOSE 8090
 CMD ["./runscript"]
diff --git a/TWS/twsproxy/__main__.py b/TWS/twsproxy/__main__.py
index bb12c33..5b5bf8e 100644
--- a/TWS/twsproxy/__main__.py
+++ b/TWS/twsproxy/__main__.py
@@ -7,5 +7,5 @@ import sys
 port = sys.argv[1]
 logger.debug("starting TWS proxy")
 print("starting TWS proxy")
-server = server.TWSServer(port)
+server = server.TWSServer(port,5)
 server.run()
diff --git a/runscript b/runscript
index c13c260..36e3584 100755
--- a/runscript
+++ b/runscript
@@ -1,5 +1,4 @@
 #!/bin/bash
-twsproxy 8090 &
 uwsgi \
         --socket 0.0.0.0:8080 \
         --buffer-size 65536 \
@@ -7,4 +6,5 @@ uwsgi \
         --threads 8 \
         --protocol=http \
         -w tes.tes_wsgi &
+twsproxy 8090 
 
-- 
GitLab