fixed /srv owner bug for basex
This commit is contained in:
@@ -11,6 +11,6 @@ USER root
|
|||||||
RUN chmod +x /usr/local/bin/gdp-entrypoint.sh
|
RUN chmod +x /usr/local/bin/gdp-entrypoint.sh
|
||||||
# RUN chown -R basex:basex /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 ln -s /usr/local/bin/gdp-entrypoint.sh /srv/ # backwards compat
|
||||||
# RUN chown -R basex:basex /srv/basex
|
RUN chown -R basex:basex /srv
|
||||||
USER basex
|
# USER basex
|
||||||
CMD ["/bin/sh","/usr/local/bin/gdp-entrypoint.sh"]
|
CMD ["/bin/sh","/usr/local/bin/gdp-entrypoint.sh"]
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
id
|
id
|
||||||
|
|
||||||
|
ls -ls / | grep srv
|
||||||
|
|
||||||
echo "Creating GDP BaseX db"
|
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()})"
|
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'
|
# , 'serializer': 'indent=no'
|
||||||
|
|||||||
@@ -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
|
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:
|
up:
|
||||||
|
docker-compose up
|
||||||
|
upd:
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
||||||
up_basex:
|
up_basex:
|
||||||
|
|||||||
Reference in New Issue
Block a user