Browse Source

fixed /srv owner bug for basex

bach 2 years ago
parent
commit
c14b7ab8af
3 changed files with 6 additions and 2 deletions
  1. 2 2
      Docker/basex/Dockerfile
  2. 2 0
      Docker/basex/gdp-entrypoint.sh
  3. 2 0
      Makefile

+ 2 - 2
Docker/basex/Dockerfile

@@ -11,6 +11,6 @@ USER root
 RUN chmod +x /usr/local/bin/gdp-entrypoint.sh
 # RUN chown -R basex:basex /usr/local/bin/gdp-entrypoint.sh
 # # RUN ln -s /usr/local/bin/gdp-entrypoint.sh /srv/ # backwards compat
-# RUN chown -R basex:basex /srv/basex
-USER basex
+RUN chown -R basex:basex /srv
+# USER basex
 CMD ["/bin/sh","/usr/local/bin/gdp-entrypoint.sh"]

+ 2 - 0
Docker/basex/gdp-entrypoint.sh

@@ -4,6 +4,8 @@
 
 id
 
+ls -ls / | grep srv
+
 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'

+ 2 - 0
Makefile

@@ -28,6 +28,8 @@ buildnc_client:
 		docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) client
 
 up:
+		docker-compose up
+upd:
 		docker-compose up -d
 
 up_basex: