automaticly create the basex db from sourcesPrep

This commit is contained in:
2019-07-19 10:57:45 +02:00
parent c5f1469cde
commit 9644e66fbf
5 changed files with 43 additions and 14 deletions
+12 -2
View File
@@ -1,5 +1,15 @@
FROM basex/basexhttp:latest
# RUN basex run db:create("gdp","/srv/basex/src/gdp.tei.xml")
COPY ./bashrc /srv/.bashrc
COPY ./inputrc /srv/.inputrc
RUN 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()})"
# RUN 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()})"
COPY ./gdp-entrypoint.sh /usr/local/bin
USER root
RUN chmod +x /usr/local/bin/gdp-entrypoint.sh
# RUN ln -s /usr/local/bin/gdp-entrypoint.sh /srv/ # backwards compat
USER basex
CMD ["/bin/sh","/usr/local/bin/gdp-entrypoint.sh"]