Commit 38cd8b5d authored by Lucie LONG's avatar Lucie LONG
Browse files

WebUI:

- script for starting the WebUI in developing mode
parent 293623a5
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -14,19 +14,23 @@

# for development purposes only

K8S_NAMESPACE=${K8S_NAMESPACE:-'tf-dev'}
# K8S_NAMESPACE=${K8S_NAMESPACE:-'tf-dev'}

export CONTEXTSERVICE_SERVICE_HOST=`kubectl get service/contextservice -n ${K8S_NAMESPACE} -o jsonpath='{.spec.clusterIP}'`
# export CONTEXTSERVICE_SERVICE_HOST=`kubectl get service/contextservice -n ${K8S_NAMESPACE} -o jsonpath='{.spec.clusterIP}'`

echo Context IP: $CONTEXTSERVICE_SERVICE_HOST
# echo Context IP: $CONTEXTSERVICE_SERVICE_HOST

export DEVICESERVICE_SERVICE_HOST=`kubectl get service/deviceservice -n ${K8S_NAMESPACE} -o jsonpath='{.spec.clusterIP}'`
# export DEVICESERVICE_SERVICE_HOST=`kubectl get service/deviceservice -n ${K8S_NAMESPACE} -o jsonpath='{.spec.clusterIP}'`

echo Device IP: $DEVICESERVICE_SERVICE_HOST
# echo Device IP: $DEVICESERVICE_SERVICE_HOST

source tfs_runtime_env_vars.sh

export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION='python'
export HOST="127.0.0.1"
export HOSTNAME="test"
export FLASK_ENV="development"
export LOG_LEVEL="DEBUG"

# python3 -m webbrowser http://${HOST}:8004