basex dockerfile create db, readme
This commit is contained in:
@@ -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()})"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user