48 Commits
Author SHA1 Message Date
bachir d57c6b3c06 bugfix 2020-07-14 12:18:01 +02:00
bachir e50e9ac0da bugfix 2020-07-14 11:48:10 +02:00
bachir 8a6a9de45d improved user managment in client Dockerfile with args 2020-07-14 11:41:10 +02:00
bachir 82ae413857 client: better texts/toc interactions 2020-07-13 15:11:18 +02:00
bachir 536ba0783b client: texts/toc interactions alpha 2020-07-13 12:47:37 +02:00
bachir 67bae987d7 client: infinite loading 2020-07-12 17:04:05 +02:00
bachir c2c4198d39 bug fix, #758 #760, readme 2020-07-12 15:00:16 +02:00
bachir 79bcd59dab client: text index item tooltip 2020-07-12 12:50:41 +02:00
bachir c5d790b0d8 client: meta info title 2020-07-11 11:54:41 +02:00
bachir a7eff55a91 bug fix on client 2020-07-11 10:14:05 +02:00
bachir e0bfa917fe client update 2020-07-10 15:38:09 +02:00
bachir 40a0e85a1d all submodules updates
api : indexing, index occurences, debuging
client : indexes, references with occurences ans links to texts
2020-07-09 18:48:27 +02:00
bachir 2d5bf65663 client update 2020-07-07 15:34:21 +02:00
bachir f13756e34b client update 2020-07-07 12:38:13 +02:00
bachir 69a0b22750 client update 2020-07-07 11:56:41 +02:00
bachir 1e39c5e193 client update 2020-07-06 15:27:07 +02:00
bachir f0a7735a52 client update 2020-07-06 15:03:33 +02:00
bachir f27ebea7c8 synopsx update 2020-07-06 09:38:54 +02:00
bachir bbaff95481 updated api 2020-07-01 10:43:04 +02:00
bachir 036eafb796 updated webapp and synopsix 2020-06-29 11:27:47 +02:00
bachir a6b67f8876 updated webapp 2020-06-26 19:06:40 +02:00
bachir 4d71f70243 added rm node_modules to client entry point 2020-06-26 18:30:25 +02:00
bachir 75b072def9 fix readme 2020-06-03 16:58:48 +02:00
bachir fd867c6985 bugfix 2020-06-03 16:26:29 +02:00
bachir a4641ad12f api update 2020-06-03 10:24:53 +02:00
bachir b6a17ce6f2 client new commits 2020-06-02 12:09:12 +02:00
bachir 0c5d301b88 webapp updated 2020-05-29 12:54:17 +02:00
bachir b18f51a14e client update 2020-02-28 16:49:53 +01:00
bachir eae1735d4c webapp update 2020-02-27 15:16:31 +01:00
bachir 9cb13b3f3d client update 2020-02-27 15:07:59 +01:00
bachir 99cd77e227 updated dependencies data, synopsx, webapp 2020-02-27 10:40:49 +01:00
bachir 8e441d3b5a readme update 2019-10-14 17:39:14 +02:00
bachir 3479fb6688 client update 2019-10-14 17:37:50 +02:00
bachir 700a01a0d4 updated data and added FullTextIndex basex db 2019-10-14 16:53:05 +02:00
bachir ed21394a25 updated wepapp submodule 2019-10-14 15:17:27 +02:00
bachir 1cf6a4ba1e more client commits, see the client repos 2019-09-27 17:00:57 +02:00
bachir fdf82583fe more client commits, see the client repos 2019-09-27 16:43:03 +02:00
bachir 47ddbe61a5 more client commits, see the client repos 2019-09-27 15:22:53 +02:00
bachir 8bd97b031a more client commits, see the client repos 2019-09-25 17:13:03 +02:00
bachir e125aaf39b more client commits, see the client repos 2019-09-25 16:09:58 +02:00
bachir b4328dca7b new commits on client 2019-09-24 17:45:20 +02:00
bachir cabae621b7 updated readme 2019-09-18 12:13:33 +02:00
bachir 24a6ff60f7 first search results display 2019-09-18 12:07:19 +02:00
bachir 696ce52966 added CORS info in readme 2019-09-17 16:16:30 +02:00
bachir a0324a73ef more api review 2019-08-26 11:03:58 +02:00
bachir 2d291ac4e4 client dev fix 2019-08-21 18:48:32 +02:00
bachir 45b1d544d4 some api access fixed 2019-08-21 11:55:02 +02:00
bachir 85c13ebf5d updated client 2019-08-20 14:39:28 +02:00
14 changed files with 61 additions and 121 deletions
+8
View File
@@ -4,6 +4,14 @@
echo "Creating GDP BaseX db"
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()})"
# , 'serializer': 'indent=no'
echo "Creating FullText Index tmp file"
basex "xslt:transform(fn:doc('/srv/basex/src/gdp.tei.xml'), fn:doc('/srv/basex/src/xslt/generateFullTextIndex.xsl'))" > /tmp/gdpFtIndex.xml
echo "Creating FullText Index DB"
basex "db:create('gdpFtIndex', '/tmp/gdpFtIndex.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()})"
# , 'serializer': 'indent=no'
# as we override the parent container CMD, we have to launch basexhttp here
echo "Launching basexhttp"
+13 -8
View File
@@ -4,21 +4,26 @@ RUN apk update && apk --no-cache add shadow && \
usermod -u 1001 node && \
groupmod -g 1001 node
RUN find / -group 1000 -exec chgrp -h node {} \;
RUN find / -user 1000 -exec chown -h node {} \;
ARG UID=1000
ARG UNAME=gdp
ARG GID=1000
ARG GNAME=users
# RUN addgroup -g 1000 gdp && \
#RUN find / -group ${UID} -exec chgrp -h node {} \;
#RUN find / -user ${UID} -exec chown -h node {} \;
RUN addgroup -g ${DID} ${GNAME}
# adduser -h /home/gdp -D -u 1000 gdp && \
RUN adduser -u 1000 -G users -s /bin/sh -D gdp
RUN adduser -u ${UID} -G ${GNAME} -s /bin/sh -D ${UNAME}
# chown -R gdp:gdp /home/gdp
USER gdp
USER ${UNAME}
COPY ./bashrc /home/gdp/.bashrc
COPY ./inputrc /home/gdp/.inputrc
COPY ./bashrc /home/${UNAME}/.bashrc
COPY ./inputrc /home/${UNAME}/.inputrc
COPY ./client-entrypoint.sh /usr/local/bin
USER root
RUN chmod +x /usr/local/bin/client-entrypoint.sh
USER gdp
USER ${UNAME}
CMD ["/bin/sh","/usr/local/bin/client-entrypoint.sh"]
+5 -2
View File
@@ -2,9 +2,12 @@
cat /etc/passwd|grep 1000
echo "Npm install"
cd /app
echo "Cleaning node_modules"
rm -rf node_modules
echo "Npm install"
npm install
echo "Run npm dev"
-7
View File
@@ -1,7 +0,0 @@
FROM nginx:latest
COPY ./bashrc /root/.bashrc
COPY ./inputrc /root/.inputrc
COPY ./index.html /var/www/html/index.html
# COPY ./default.conf /etc/nginx/conf.d/default.conf
COPY ./default.conf /etc/nginx/nginx.conf
-3
View File
@@ -1,3 +0,0 @@
PS1='\e[36m\e[1mNGINX\e[0m:\e[90m\w\e[0m\n$ '
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
-49
View File
@@ -1,49 +0,0 @@
worker_processes 1;
events { worker_connections 1024; }
http {
upstream docker-api {
server basex:8984;
}
upstream docker-client {
server client:8988;
}
proxy_set_header Host $host;
proxy_set_header X-NginX-Proxy true;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
server {
listen 80;
root /var/www/html;
index index.html;
charset utf-8;
server_name dev.gdp.fr;
access_log on;
error_log /var/log/nginx/error.log error;
sendfile off;
client_max_body_size 100m;
location / {
try_files $uri $uri/ index.html;
}
location /api {
rewrite ^/api/(.*) /$1 break;
proxy_redirect off;
proxy_pass http://docker-api;
}
location /client {
rewrite ^/client/(.*) /$1 break;
proxy_redirect off;
proxy_pass http://docker-client;
}
}
}
-13
View File
@@ -1,13 +0,0 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Proxy</title>
</head>
<body>
<ul>
<li><a href="/api">api</a></li>
<li><a href="/client">client</a></li>
</ul>
</body>
</html>
-2
View File
@@ -1,2 +0,0 @@
set show-all-if-ambiguous on
set completion-ignore-case on
+31 -10
View File
@@ -10,7 +10,7 @@ sudo pacman -S docker docker-compose docker-machine
this will clone this repos (main docker environement) and necessary other source code (synopsx, webapp, xml-tei sources, vuejs client)
```
git clone --recursive -o figli https://figureslibres.io/gogs/bachir/docker-gdp.git
git clone --recursive https://figureslibres.io/gogs/bachir/docker-gdp.git
```
## Docker
@@ -25,31 +25,52 @@ only before the first run (may take some time)
```
sudo docker-compose build
```
or with args for groups and users
```
docker-compose build --build-arg UID=$(id -u) --build-arg GID=$(id -g) --build-arg UNAME=$(id -un) --build-arg GNAME=$(id -gn)
```
### run
then each time you want to launch the app
```
sudo docker-compose up -d
```
## DB
<del>connect http://localhost:8984/synopsx/create-project</del>
<del>create a 'gdp' project</del>
<del>connect to http://localhost:8984/synopsx/config</del>
<del>select 'gpd' and click on 'ok'</del>
## API
the api is ready, you can go to http://localhost:8984/gdp/home
the api is ready, you can go to http://localhost:8984/home
### indexing
before you can use the client you need to trigger this url http://localhost:8984/indexing
## Client
open http://localhost:8988 in your browser
## Vhost or Cross Origins Policy
Cross origin poilicy will block the api requests from client
You'll need to install vhost domain for api and client, like dev.gdp.net and dev.api.gdp.net
Or in firefox install this addon to allow cors addons.mozilla.org/en-US/firefox/addon/cors-everywhere/
## Logs
to follow the webpack compilation process, run
```
sudo docker-compose logs -f
```
## Update
update the code
```
git pull origin master
git pull --recurse-submodules
```
restart the containers
```
docker-compose restart basex
docker-compose restart client
```
or rebuild if data was updated
```
docker-compose up -d --build
```
## Doc
https://github.com/guidesDeParis/webapp/blob/master/install.md
+1 -1
Submodule client updated: 01e4d99537...14beb796ea
+1 -1
Submodule data updated: 423de0caf0...beee67faae
-23
View File
@@ -12,8 +12,6 @@ services:
- 1984:1984
- 8984:8984
working_dir: "/srv/basex"
networks:
- api
client:
build: ./Docker/client
@@ -25,28 +23,7 @@ services:
working_dir: "/app"
depends_on:
- basex
networks:
- client
nginx:
build: ./Docker/nginx/
ports:
- 8999:80
volumes:
- "${LOG_ROOT}:/var/log:rw"
# working_dir: "/var/www/html"
depends_on:
- basex
- client
networks:
- api
- client
volumes:
basex-home:
# client-home:
networks:
api:
client:
+1 -1
Submodule synopsx updated: 558dd832a2...c84136501e
+1 -1
Submodule webapp updated: e6ca72b4a0...34356e0fc7