updated synopsx, added webapp mount, readme
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
COMPOSE_PROJECT_NAME=gdp
|
COMPOSE_PROJECT_NAME=gdp
|
||||||
|
|
||||||
CLIENT_ROOT=./client
|
CLIENT_ROOT=./client
|
||||||
SYNOPSX_ROOT=./synopsyx
|
SYNOPSX_ROOT=./synopsx
|
||||||
|
WEBAPP_ROOT=./webapp
|
||||||
DATA_ROOT=./data
|
DATA_ROOT=./data
|
||||||
LOG_ROOT=./log
|
LOG_ROOT=./log
|
||||||
|
|||||||
@@ -7,3 +7,6 @@
|
|||||||
[submodule "data"]
|
[submodule "data"]
|
||||||
path = data
|
path = data
|
||||||
url = https://github.com/guidesDeParis/sourcesPrep.git
|
url = https://github.com/guidesDeParis/sourcesPrep.git
|
||||||
|
[submodule "webapp"]
|
||||||
|
path = webapp
|
||||||
|
url = https://github.com/guidesDeParis/webapp
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
FROM basex/basexhttp:latest
|
FROM basex/basexhttp:latest
|
||||||
|
|
||||||
|
# RUN basex db:create("gpd","/srv/basex/src/gdp.tei.xml",(), map{'ftindex':true()})
|
||||||
|
|||||||
@@ -1,5 +1,43 @@
|
|||||||
# docker-gdp
|
# 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
|
https://github.com/guidesDeParis/webapp/blob/master/install.md
|
||||||
|
|
||||||
http://docs.basex.org/wiki/Docker
|
http://docs.basex.org/wiki/Docker
|
||||||
|
|
||||||
|
https://hub.docker.com/r/basex/basexhttp
|
||||||
|
|||||||
+2
-1
@@ -7,8 +7,9 @@ services:
|
|||||||
- 1984:1984
|
- 1984:1984
|
||||||
- 8984:8984
|
- 8984:8984
|
||||||
volumes:
|
volumes:
|
||||||
- "${DATA_ROOT}:/srv/basex/data"
|
|
||||||
- "${SYNOPSX_ROOT}:/srv/basex/webapp/synopsx"
|
- "${SYNOPSX_ROOT}:/srv/basex/webapp/synopsx"
|
||||||
|
- "${WEBAPP_ROOT}:/srv/basex/webapp/synopsx/workspace/gdp"
|
||||||
|
- "${DATA_ROOT}:/srv/basex/src"
|
||||||
# - "${LOG_ROOT}:/var/log:rw"
|
# - "${LOG_ROOT}:/var/log:rw"
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
|
|||||||
+1
-1
Submodule synopsx updated: 26c0ca566e...558dd832a2
Submodule
+1
Submodule webapp added at e6ca72b4a0
Reference in New Issue
Block a user