-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
39 lines (39 loc) · 2.12 KB
/
Copy pathdocker-compose.override.yml
File metadata and controls
39 lines (39 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
services:
linkeddatahub:
# image: atomgraph/linkeddatahub:fe7106d14e022a9eb709fbe1b3beb60496f7d177
environment:
- TZ="Europe/Vilnius"
- ENABLE_WEBID_SIGNUP=false # disable public WebID signup
# Custom XSLT overrides for the END-USER app only (admin untouched), the
# linkeddatahub.com pattern — see CLAUDE.md "XSLT overrides". layout.xsl
# replaces the stock end-user ac:stylesheet target (static/xsl/layout.xsl)
# and imports overrides.xsl from its own dir; client.xsl + its compiled SEF
# live under static/com/ltlod/xsl/ (repointed by layout.xsl's xhtml:Script).
# Rebuild the SEF (`make sef`) and recreate this container after editing any
# of them. Not :ro on layout.xsl — LDH's InstallPackage endpoint appends to it.
volumes:
- ./files/layout.xsl:/usr/local/tomcat/webapps/ROOT/static/xsl/layout.xsl
- ./files/overrides.xsl:/usr/local/tomcat/webapps/ROOT/static/xsl/overrides.xsl:ro
- ./files/client.xsl:/usr/local/tomcat/webapps/ROOT/static/com/ltlod/xsl/client.xsl:ro
- ./files/client.xsl.sef.json:/usr/local/tomcat/webapps/ROOT/static/com/ltlod/xsl/client.xsl.sef.json:ro
# one-off bulk loader: `make load` runs it with fuseki-end-user stopped.
# The fuseki image bundles the full Jena CLI inside the fuseki-server jar.
# Committed TriG is base-relative with no @base; resolve it against the
# deployment base (BASE_URI, injected by `make load` from .env) with riot
# first — tdb2.tdbloader has no --base and would otherwise store file:// IRIs.
tdb-loader:
image: atomgraph/fuseki:6.1.0
profiles: [ "load" ]
user: root
mem_limit: 4096m
volumes:
- ./fuseki/end-user:/fuseki/databases
- ./datasets/current:/staging:ro
entrypoint: [ "/bin/sh", "-c" ]
command:
- >
set -e;
"$${JAVA_HOME}/bin/java" -Xmx3g -cp "/fuseki/$${FUSEKI_JAR}" riotcmd.riot
--quiet --base="$${BASE_URI:?BASE_URI not set}" --syntax=trig --output=nquads /staging/*/*.trig > /tmp/staging.nq;
exec "$${JAVA_HOME}/bin/java" -Xmx3g -cp "/fuseki/$${FUSEKI_JAR}" tdb2.tdbloader
--loc /fuseki/databases/DB2 /tmp/staging.nq