Run Synchronizer without supervisor
diff --git a/xos/configurations/cord/docker-compose.yml b/xos/configurations/cord/docker-compose.yml
new file mode 100644
index 0000000..3483a65
--- /dev/null
+++ b/xos/configurations/cord/docker-compose.yml
@@ -0,0 +1,93 @@
+xos_db:
+ image: xosproject/xos-postgres
+ expose:
+ - "5432"
+
+xos_synchronizer_openstack:
+ command: python /opt/xos/xos-observer.py
+ image: xosproject/xos-synchronizer-openstack
+ labels:
+ org.xosproject.kind: synchronizer
+ org.xosproject.target: openstack
+ links:
+ - xos_db
+ extra_hosts:
+ - ctl:${MYIP}
+ volumes:
+ - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro
+ - ./xos_cord_config:/opt/xos/xos_configuration/xos_cord_config:ro
+
+
+#xos_synchronizer_onos:
+# image: xosproject/xos-synchronizer-openstack
+ #command: /usr/bin/supervisord -c /opt/xos/observers/onos/supervisor/onos-observer.conf
+# command: python /opt/xos/observers/onos/onos-observer.py -C /opt/xos/observers/onos/onos_observer_config
+# labels:
+# org.xosproject.kind: synchronizer
+# org.xosproject.target: onos
+# links:
+# - xos_db
+# extra_hosts:
+# - ctl:${MYIP}
+# volumes:
+# - ../setup/id_rsa:/opt/xos/observers/onos/onos_key:ro # private key
+
+#xos_synchronizer_vcpe:
+# image: xosproject/xos-synchronizer-openstack
+ #command: /usr/bin/supervisord -c /opt/xos/observers/vcpe/supervisor/vcpe-observer.conf
+# command: python /opt/xos/observers/vcpe/vcpe-observer.py -C /opt/xos/observers/vcpe/vcpe_observer_config
+# labels:
+# org.xosproject.kind: synchronizer
+# org.xosproject.target: vcpe
+# links:
+# - xos_db
+# extra_hosts:
+# - ctl:${MYIP}
+# volumes:
+# - ../setup/id_rsa:/opt/xos/observers/vcpe/vcpe_private_key:ro # private key
+
+#xos_synchronizer_vbng:
+# image: xosproject/xos-synchronizer-openstack
+ #command: /usr/bin/supervisord -c /opt/xos/observers/vbng/supervisor/vbng-observer.conf
+# command: python /opt/xos/observers/vbng/vbng-observer.py -C /opt/xos/observers/vbng/vbng_observer_config
+# labels:
+# org.xosproject.kind: synchronizer
+# org.xosproject.target: vbng
+# links:
+# - xos_db
+# extra_hosts:
+# - ctl:${MYIP}
+
+#xos_synchronizer_monitoring_channel:
+# image: xosproject/xos-synchronizer-openstack
+ #command: /usr/bin/supervisord -c /opt/xos/observers/monitoring_channel/supervisor/monitoring_channel_observer.conf
+# command: python /opt/xos/observers/monitoring_channel/monitoring_channel_observer.py -C /opt/xos/observers/monitoring_channel/monitoring_channel_observer_config
+# labels:
+# org.xosproject.kind: synchronizer
+# org.xosproject.target: monitoring_channel
+# links:
+# - xos_db
+# extra_hosts:
+# - ctl:${MYIP}
+
+# FUTURE
+#xos_swarm_synchronizer:
+# image: xosproject/xos-swarm-synchronizer
+# labels:
+# org.xosproject.kind: synchronizer
+# org.xosproject.target: swarm
+
+xos:
+ image: xosproject/xos
+ command: python /opt/xos/manage.py runserver 0.0.0.0:8000 --insecure --makemigrations
+ ports:
+ - "9999:8000"
+ links:
+ - xos_db
+ volumes:
+ - ../setup:/root/setup:ro
+ - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro
+ - ./xos_cord_config:/opt/xos/xos_configuration/xos_cord_config:ro
+ - ../setup/id_rsa.pub:/opt/xos/observers/onos/onos_key.pub:ro
+ - ../setup/id_rsa.pub:/opt/xos/observers/vcpe/vcpe_public_key:ro
+ - ../setup/id_rsa.pub:/opt/xos/observers/monitoring_channel/monitoring_channel_public_key:ro
diff --git a/xos/configurations/devel/docker-compose.yml b/xos/configurations/devel/docker-compose.yml
index 6ff2e78..0602a66 100644
--- a/xos/configurations/devel/docker-compose.yml
+++ b/xos/configurations/devel/docker-compose.yml
@@ -5,6 +5,7 @@
xos_synchronizer_openstack:
image: xosproject/xos-synchronizer-openstack
+ command: python /opt/xos/xos-observer.py
labels:
org.xosproject.kind: synchronizer
org.xosproject.target: openstack
@@ -12,6 +13,8 @@
- xos_db
extra_hosts:
- ctl:${MYIP}
+ volumes:
+ - ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro
# FUTURE
#xos_swarm_synchronizer: