Commit d6697043 authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Adding script to launch webui in development mode.

parent 025ee626
Loading
Loading
Loading
Loading
+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
+3 −4
Original line number Diff line number Diff line
import os
import logging

# General settings
@@ -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