drafted vuejs client container
This commit is contained in:
@@ -5,8 +5,6 @@ COPY ./inputrc /srv/.inputrc
|
|||||||
|
|
||||||
# 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()})"
|
# 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()})"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
COPY ./gdp-entrypoint.sh /usr/local/bin
|
COPY ./gdp-entrypoint.sh /usr/local/bin
|
||||||
USER root
|
USER root
|
||||||
RUN chmod +x /usr/local/bin/gdp-entrypoint.sh
|
RUN chmod +x /usr/local/bin/gdp-entrypoint.sh
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
FROM node:lts-alpine
|
||||||
|
|
||||||
|
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 {} \;
|
||||||
|
|
||||||
|
# RUN addgroup -g 1000 gdp && \
|
||||||
|
# adduser -h /home/gdp -D -u 1000 gdp && \
|
||||||
|
RUN adduser -u 1000 -G users -s /bin/sh -D gdp
|
||||||
|
# chown -R gdp:gdp /home/gdp
|
||||||
|
|
||||||
|
USER gdp
|
||||||
|
|
||||||
|
COPY ./bashrc /home/gdp/.bashrc
|
||||||
|
COPY ./inputrc /home/gdp/.inputrc
|
||||||
|
|
||||||
|
COPY ./client-entrypoint.sh /usr/local/bin
|
||||||
|
USER root
|
||||||
|
RUN chmod +x /usr/local/bin/client-entrypoint.sh
|
||||||
|
USER gdp
|
||||||
|
CMD ["/bin/sh","/usr/local/bin/client-entrypoint.sh"]
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
PS1='\e[36m\e[1mNGINX\e[0m:\e[90m\w\e[0m\n$ '
|
PS1='\e[36m\e[1mNODE\e[0m:\e[90m\w\e[0m\n$ '
|
||||||
bind '"\e[A": history-search-backward'
|
bind '"\e[A": history-search-backward'
|
||||||
bind '"\e[B": history-search-forward'
|
bind '"\e[B": history-search-forward'
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cat /etc/passwd|grep 1000
|
||||||
|
|
||||||
|
echo "Npm install"
|
||||||
|
|
||||||
|
cd /app
|
||||||
|
npm install
|
||||||
|
|
||||||
|
echo "Run npm dev"
|
||||||
|
npm run dev
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
FROM nginx:latest
|
|
||||||
|
|
||||||
COPY ./default.conf /etc/nginx/conf.d/default.conf
|
|
||||||
COPY ./bashrc /root/.bashrc
|
|
||||||
COPY ./inputrc /root/.inputrc
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
server {
|
|
||||||
listen 80 default_server;
|
|
||||||
root /var/www/html/dist;
|
|
||||||
index index.html;
|
|
||||||
|
|
||||||
charset utf-8;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /favicon.ico { access_log off; log_not_found off; }
|
|
||||||
location = /robots.txt { access_log off; log_not_found off; }
|
|
||||||
|
|
||||||
access_log on;
|
|
||||||
error_log /var/log/nginx/error.log error;
|
|
||||||
|
|
||||||
sendfile off;
|
|
||||||
|
|
||||||
client_max_body_size 100m;
|
|
||||||
|
|
||||||
location ~ /\.ht {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+15
-14
@@ -2,27 +2,28 @@ version: '3.7'
|
|||||||
services:
|
services:
|
||||||
basex:
|
basex:
|
||||||
build: ./Docker/basex/
|
build: ./Docker/basex/
|
||||||
|
|
||||||
ports:
|
|
||||||
- 1984:1984
|
|
||||||
- 8984:8984
|
|
||||||
volumes:
|
volumes:
|
||||||
- "${SYNOPSX_ROOT}:/srv/basex/webapp/synopsx"
|
- "${SYNOPSX_ROOT}:/srv/basex/webapp/synopsx"
|
||||||
- "${WEBAPP_ROOT}:/srv/basex/webapp/synopsx/workspace/gdp"
|
- "${WEBAPP_ROOT}:/srv/basex/webapp/synopsx/workspace/gdp"
|
||||||
- "${DATA_ROOT}:/srv/basex/src"
|
- "${DATA_ROOT}:/srv/basex/src"
|
||||||
- basex-home:/srv
|
- basex-home:/srv
|
||||||
# - "${LOG_ROOT}:/var/log:rw"
|
# - "${LOG_ROOT}:/var/log:rw"
|
||||||
|
ports:
|
||||||
|
- 1984:1984
|
||||||
|
- 8984:8984
|
||||||
working_dir: "/srv/basex"
|
working_dir: "/srv/basex"
|
||||||
|
|
||||||
# nginx:
|
client:
|
||||||
# build: ./Docker/nginx/
|
build: ./Docker/client
|
||||||
# ports:
|
volumes:
|
||||||
# - 8990:80
|
- "${CLIENT_ROOT}:/app"
|
||||||
# volumes:
|
# - client-home:/home/gdp
|
||||||
# - "${CLIENT_ROOT}:/var/www/html"
|
ports:
|
||||||
# - "${LOG_ROOT}:/var/log:rw"
|
- 8988:8080
|
||||||
# working_dir: "/var/www/html/"
|
working_dir: "/app"
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - basex
|
- basex
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
basex-home:
|
basex-home:
|
||||||
|
# client-home:
|
||||||
|
|||||||
Reference in New Issue
Block a user