Nuxeo 10.10 docker image

Nuxeo folks:

In docker-entrypoint.sh you have:

for f in /docker-entrypoint-initnuxeo.d/*; do
  case "$f" in
    *.sh)  echo "$0: running $f"; . "$f" ;;
    *.zip) echo "$0: installing Nuxeo package $f"; nuxeoctl mp-install $f ${NUXEO_MPINSTALL_OPTIONS} --accept=true ;;
    *.clid) echo "$0: copying clid to $NUXEO_DATA"; cp $f $NUXEO_DATA/ ;;
    *)     echo "$0: ignoring $f" ;;
  esac
done

This supports only one level in that directory. In instead, you had this:

for f in $(find /docker-entrypoint-initnuxeo.d -type f); do
  (everything else the same as above)
done

Then it would be possible to mount marketplace ZIPs into a sub-directory from a persistent volume which would more easily support installing packages in disconnected mode, and wouldn't have contention with a nuxeo.conf placed in that directory as well - say from a ConfigMap.

0 votes

0 answers

1042 views

ANSWER

Here is a better way to write this:

find /docker-entrypoint-initnuxeo.d -type f | while read f; do
    ...
done
06/28/2020