Moved xos_ui to port 9000 and xos_bootstrap_ui to port 9001 for all config
Change-Id: I75ab78deb55b344b0b64b183dda2859936045e9c
diff --git a/cord-pod/Makefile b/cord-pod/Makefile
index 832f135..e8368c1 100644
--- a/cord-pod/Makefile
+++ b/cord-pod/Makefile
@@ -8,12 +8,12 @@
DOCKER_PROJECT ?= cordpod
BOOTSTRAP_PROJECT ?= cordpodbs
-XOS_UI_PORT := 8888
+XOS_UI_PORT := 9000
# Include common functions
include $(COMMON_DIR)/Makefile
-xos: prereqs config_dirs xos_download cord_services cord_libraries bootstrap onboarding
+xos: prereqs config_dirs xos_download cord_services cord_libraries bootstrap onboarding rest-gw ui
onboarding: synchronizers.yaml id_rsa id_rsa.pub
@echo "[ONBOARDING]"
diff --git a/cord-pod/docker-compose-bootstrap.yml b/cord-pod/docker-compose-bootstrap.yml
index c145a83..1e68f91 100644
--- a/cord-pod/docker-compose-bootstrap.yml
+++ b/cord-pod/docker-compose-bootstrap.yml
@@ -47,7 +47,7 @@
max-file: "5"
xos_bootstrap_ui:
- command: python /opt/xos/manage.py runserver 0.0.0.0:81 --insecure --makemigrations
+ command: python /opt/xos/manage.py runserver 0.0.0.0:9001 --insecure --makemigrations
environment:
- CONFIG_DIR
image: xosproject/xos
@@ -56,7 +56,7 @@
links:
- xos_db
ports:
- - "81:81"
+ - "9001:9001"
volumes:
- ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro
- ./xos_cord_config:/opt/xos/xos_configuration/xos_cord_config:ro
diff --git a/cord-pod/xos-gui.yaml b/cord-pod/xos-gui.yaml
new file mode 100644
index 0000000..2dae32f
--- /dev/null
+++ b/cord-pod/xos-gui.yaml
@@ -0,0 +1,29 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: Onboard the exampleservice
+
+imports:
+ - custom_types/xos.yaml
+
+topology_template:
+ node_templates:
+
+ # UI Container
+ xos-spa-gui:
+ type: tosca.nodes.Component
+ properties:
+ # command: cd /var/www; BRAND=cord npm run build
+ name: xos-spa-gui
+ image: xosproject/xos-gui
+ ports: 4000:4000
+
+ gui-to-gw:
+ type: tosca.nodes.ComponentLink
+ properties:
+ container: xos-rest-gateway
+ alias: xos-rest-gw
+ kind: internal
+ requirements:
+ - xos:
+ node: xos-spa-gui
+ relationship: tosca.relationships.LinkOfComponent
\ No newline at end of file
diff --git a/cord-pod/xos.yaml b/cord-pod/xos.yaml
index 08fceb0..a60f52d 100644
--- a/cord-pod/xos.yaml
+++ b/cord-pod/xos.yaml
@@ -10,8 +10,8 @@
xos:
type: tosca.nodes.XOS
properties:
- ui_port: 8888
- bootstrap_ui_port: 81
+ ui_port: 9000
+ bootstrap_ui_port: 9001
docker_project_name: cordpod
db_container_name: cordpodbs_xos_db_1
redis_container_name: cordpodbs_xos_redis_1