Linked Data Store: REST and GraphQL access to versioned, linked JSON documents
893
A time machine for JSON documents and the links between them. Linked Data Store (LDS) is a server that gives REST and GraphQL access to versioned, linked JSON documents described by a model: a GraphQL schema or JSON Schema 2020-12 files. Every write adds a version that holds from its own time, and a read at any instant, past, present or future, gives every document as it was then, with its links followed to the same instant.
docker run --rm -p 127.0.0.1:9090:9090 descoped/lds:3.0.0
LDS answers on localhost:9090 (published on localhost only), keeps everything in memory, and has an example model (a person and a company):
curl -X PUT 'http://localhost:9090/ns/Company/acme?sync=true' -H 'Content-Type: application/json' -d '{"name": "Acme"}'
curl 'http://localhost:9090/ns/Company/acme'
Getting started goes on from there.
Three variants of the same LDS, each for linux/amd64 and linux/arm64:
| Tags | What it is for |
|---|---|
3.0.0, 3.0, 3, latest | The regular image. It has a shell and the small tools of busybox (sh, wget, ls, ps, top, vi), for looking around in a running container. |
3.0.0-distroless, 3.0-distroless, 3-distroless, distroless | No shell and no program but java. For production, and for platforms where no shell is used, such as Cloud Run and Fargate. |
3.0.0-debug, 3.0-debug, 3-debug, debug | The regular image with the tools of the JDK for diagnostics: remote JMX, a remote debugger, jcmd, jstack, jmap, jstat, jhsdb, jfr and heap dumps. |
3.0.0 names one release; 3.0, 3 and latest move to the newest. Name the whole version, or the digest, where
what runs must not change on its own.
jlink from the modules of the JDK that LDS uses (Eclipse Temurin), with an archive
of its classes so the JVM starts quickly./lds: its jars in /lds/lib and the example model in /lds/schemas.lds (1000), not as root. java is the process of the container, so docker stop stops LDS
in order./ping on the port of LDS_HTTP_PORT (9090 without it).LDS is configured by environment variables that start with LDS_, or by a file mounted as
/lds/conf/application.properties. Mount your own model in /lds/schemas. As it comes, LDS keeps everything in
memory; the documents can be kept in PostgreSQL 18 or Neo4j 2026, the saga log and the transaction log in
PostgreSQL, and the search index in Solr 10:
docker run --rm -p 127.0.0.1:9090:9090 \
-e LDS_PERSISTENCE_PROVIDER=neo4j \
-e LDS_NEO4J_DRIVER_URL=bolt://neo4j:7687 \
-e LDS_NEO4J_DRIVER_PASSWORD=... \
-v "$PWD/schemas:/lds/schemas:ro" \
descoped/lds:3.0.0
Configuration has every key, and
Operations how to run LDS with PostgreSQL, Neo4j and Solr, with a
compose file for the whole stack. Options of the JVM are given in JAVA_TOOL_OPTIONS.
docker exec <container> jcmd 1 VM.version
docker exec <container> jcmd 1 GC.heap_dump /tmp/heap.hprof
Remote JMX and a remote debugger are switched on with options in JDK_JAVA_OPTIONS (not JAVA_TOOL_OPTIONS, which
every tool of the JDK reads too). Publish such ports on localhost only (-p 127.0.0.1:...).
Diagnostics with the debug image
has the options.
Every image has an SBOM and the provenance of its build, and is signed with cosign by the release workflow of the repository:
cosign verify descoped/lds:3.0.0 \
--certificate-identity https://github.com/descoped/linked-data-store-project/.github/workflows/release.yml@refs/heads/master \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Apache License 2.0. A Descoped product.
Content type
Image
Digest
sha256:669aadd4e…
Size
77.8 MB
Last updated
2 days ago
docker pull descoped/lds