For development purposes, I’m extending the dgraph/standalone image. Here’s a shortened version:
FROM dgraph/standalone:master
COPY startup.sh /.
CMD ["bash", "startup.sh"]
The startup.sh script deploys a schema, with indexes, when dgraph is healthy, after the following command returns “healthy”: curl -s localhost:8080/health | jq -r .[0].status
Sometimes, however, the indexes don’t update and DGraph prints the following log message:
E1005 15:13:20.119947 51 groups.go:255] Error while proposing initial schema: operation opIndexing is already running
Presumably DGraph is healthy, but not ready. Is there a “ready” endpoint I can use?