basex dockerfile create db, readme

This commit is contained in:
2019-07-18 19:58:42 +02:00
parent 237acc11e2
commit c5f1469cde
2 changed files with 22 additions and 2 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
FROM basex/basexhttp:latest
# RUN basex db:create("gpd","/srv/basex/src/gdp.tei.xml",(), map{'ftindex':true()})
# RUN basex run db:create("gdp","/srv/basex/src/gdp.tei.xml")
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()})"
+19 -1
View File
@@ -27,12 +27,30 @@ sudo docker-compose up -d
```
## DB
Only at first up, creat the basex database
{{/* Only at first up, creat the basex database
```
sudo docker exec -it gdp_basex_1 bash
basex
run db:create('gdp','/srv/basex/src/gdp.tei.xml',...)
``` */}}
connect http://localhost:8984/synopsx/create-project
create a 'gdp' project
connect to http://localhost:8984/synopsx/config
select 'gpd' and click on 'ok'
the api is ready, you can go to http://localhost:8984/gdp/home
{{/* ## Client
```
cd client
npm install
npm run dev
```
open http://localhost:8080 in your browser */}}
## Doc