The build cache

The build cache

When run, OCurrent keeps its state in ./var (creating it if it doesn’t already exist). The layout is subject to change, but for debugging purposes:

For debugging, you can query the build cache (even while OCurrent is running) like this:

$ sqlite3 var/db/sqlite.db
sqlite> SELECT key, job_id, ok, value FROM cache WHERE op='docker-build' ORDER BY finished;

Here, key is the Git commit that was built, log is the relative path of the build log, ok indicates whether the build passed, and value is the resulting Docker image (or the error message, if ok is false).

For the full schema, see lib_cache/db.ml.