Loading src/start_webui_dev_mode.sh 0 → 100755 +11 −0 Original line number Diff line number Diff line export CONTEXT_SERVICE_ADDRESS=`kubectl get service/contextservice -n tf-dev -o jsonpath='{.spec.clusterIP}'` echo $CONTEXT_SERVICE_ADDRESS export DEVICE_SERVICE_ADDRESS=`kubectl get service/deviceservice -n tf-dev -o jsonpath='{.spec.clusterIP}'` echo $DEVICE_SERVICE_ADDRESS export HOST="127.0.0.1" python -m webui.service src/webui/Config.py +3 −4 Original line number Diff line number Diff line import os import logging # General settings Loading @@ -15,10 +16,8 @@ HOST = '0.0.0.0' # accepts connections coming from any ADDRESS DEBUG=False # CONTEXT_SERVICE_ADDRESS = '10.107.242.226' CONTEXT_SERVICE_ADDRESS = 'context' # TODO: use the correct context ADDRESS CONTEXT_SERVICE_ADDRESS = os.environ.get('CONTEXT_SERVICE_ADDRESS', 'context') CONTEXT_SERVICE_PORT = 1010 # DEVICE_SERVICE_ADDRESS = '10.109.49.149' DEVICE_SERVICE_ADDRESS = 'device' # TODO: use the correct address DEVICE_SERVICE_ADDRESS = os.environ.get('DEVICE_SERVICE_ADDRESS', 'device') DEVICE_SERVICE_PORT = 2020 Loading
src/start_webui_dev_mode.sh 0 → 100755 +11 −0 Original line number Diff line number Diff line export CONTEXT_SERVICE_ADDRESS=`kubectl get service/contextservice -n tf-dev -o jsonpath='{.spec.clusterIP}'` echo $CONTEXT_SERVICE_ADDRESS export DEVICE_SERVICE_ADDRESS=`kubectl get service/deviceservice -n tf-dev -o jsonpath='{.spec.clusterIP}'` echo $DEVICE_SERVICE_ADDRESS export HOST="127.0.0.1" python -m webui.service
src/webui/Config.py +3 −4 Original line number Diff line number Diff line import os import logging # General settings Loading @@ -15,10 +16,8 @@ HOST = '0.0.0.0' # accepts connections coming from any ADDRESS DEBUG=False # CONTEXT_SERVICE_ADDRESS = '10.107.242.226' CONTEXT_SERVICE_ADDRESS = 'context' # TODO: use the correct context ADDRESS CONTEXT_SERVICE_ADDRESS = os.environ.get('CONTEXT_SERVICE_ADDRESS', 'context') CONTEXT_SERVICE_PORT = 1010 # DEVICE_SERVICE_ADDRESS = '10.109.49.149' DEVICE_SERVICE_ADDRESS = 'device' # TODO: use the correct address DEVICE_SERVICE_ADDRESS = os.environ.get('DEVICE_SERVICE_ADDRESS', 'device') DEVICE_SERVICE_PORT = 2020