updated synopsx, added webapp mount, readme

This commit is contained in:
2019-07-18 19:16:07 +02:00
parent 8ba995ff61
commit 237acc11e2
7 changed files with 49 additions and 3 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
COMPOSE_PROJECT_NAME=gdp
CLIENT_ROOT=./client
SYNOPSX_ROOT=./synopsyx
SYNOPSX_ROOT=./synopsx
WEBAPP_ROOT=./webapp
DATA_ROOT=./data
LOG_ROOT=./log
+3
View File
@@ -7,3 +7,6 @@
[submodule "data"]
path = data
url = https://github.com/guidesDeParis/sourcesPrep.git
[submodule "webapp"]
path = webapp
url = https://github.com/guidesDeParis/webapp
+2
View File
@@ -1 +1,3 @@
FROM basex/basexhttp:latest
# RUN basex db:create("gpd","/srv/basex/src/gdp.tei.xml",(), map{'ftindex':true()})
+38
View File
@@ -1,5 +1,43 @@
# docker-gdp
## Install docker
```
sudo pacman -S docker docker-compose docker-machine
```
## Clone this repos
this will clone this repos (main docker environement) and the edlp drupal 8 source code (without sites/default folder)
```
git clone --recursive -o figli https://figureslibres.io/gogs/bachir/docker-gdp.git
```
## Docker
### build
only before the first run (may take some time)
```
sudo docker-compose build
```
### run
then each time you want to launch the app
```
sudo docker-compose up -d
```
## DB
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',...)
```
## Doc
https://github.com/guidesDeParis/webapp/blob/master/install.md
http://docs.basex.org/wiki/Docker
https://hub.docker.com/r/basex/basexhttp
+2 -1
View File
@@ -7,8 +7,9 @@ services:
- 1984:1984
- 8984:8984
volumes:
- "${DATA_ROOT}:/srv/basex/data"
- "${SYNOPSX_ROOT}:/srv/basex/webapp/synopsx"
- "${WEBAPP_ROOT}:/srv/basex/webapp/synopsx/workspace/gdp"
- "${DATA_ROOT}:/srv/basex/src"
# - "${LOG_ROOT}:/var/log:rw"
nginx:
+1 -1
Submodule synopsx updated: 26c0ca566e...558dd832a2
Submodule
+1
Submodule webapp added at e6ca72b4a0