gdp-entrypoint.sh 519 B

12345678910
  1. #!/bin/sh
  2. # todo: run some checks
  3. echo "Creating GDP BaseX db"
  4. basex "db:create('gdp','/srv/basex/src/gdp.tei.xml', (),map {'ftindex': true(),'stemming': true(),'casesens': true(),'diacritics': true(),'language': 'fr','updindex': true(),'autooptimize': true(),'maxlen': 96,'maxcats': 100,'splitsize': 0,'chop': false(),'textindex': true(),'attrindex': true(),'tokenindex': true(), 'xinclude': true()})"
  5. # as we override the parent container CMD, we have to launch basexhttp here
  6. echo "Launching basexhttp"
  7. basexhttp