Initialize Dgraph schema before installing core services
diff --git a/dev/bootstrap_schema.sh b/dev/bootstrap_schema.sh
new file mode 100644
index 0000000..095669e
--- /dev/null
+++ b/dev/bootstrap_schema.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+kubectl -n dgraph port-forward svc/dgraph-alpha 8081:8080 &
+sleep 1
+curl -X POST http://localhost:8081/admin/schema -d 'enum EventState { NEW PROCESSING DONE } type Ignore { x: Int }'
diff --git a/dev/create_dev_cluster.sh b/dev/create_dev_cluster.sh
index e407591..e6b01e1 100755
--- a/dev/create_dev_cluster.sh
+++ b/dev/create_dev_cluster.sh
@@ -22,3 +22,6 @@
 ##  docker build --tag=localhost:30500/foo/bar:latest .
 ##  docker push pcloud-localhost:30500/foo/bar:latest
 kubectl apply -f $ROOT/apps/container-registry/install.yaml
+echo "Waiting for Container Registry to start"
+sleep 2
+kubectl -n container-registry wait --timeout=-1s --for=condition=Ready pod/registry-0
diff --git a/dev/install_core_services.sh b/dev/install_core_services.sh
index 28d66f8..d4ba265 100755
--- a/dev/install_core_services.sh
+++ b/dev/install_core_services.sh
@@ -4,6 +4,7 @@
 
 # Dgraph
 source $ROOT/apps/dgraph/install.sh
+source $ROOT/dev/bootstrap_schema.sh
 
 # Knowledge Graph
 bazel run //controller:push_to_dev