mmh352 / ou-container-builder

0 stars 2 forks source link

OpenRefine Demo directory #17

Closed mmh352 closed 3 years ago

mmh352 commented 3 years ago
web_apps:
  - path: openrefine
    cmdline:
      - /var/openrefine/openrefine-3.3/refine
      - -i
      - 0.0.0.0
      - -p
      - "{port}"
      - -d
      - /home/ou-user/OpenRefine

Re: the directory that gets mounted, ideally this would be set into $HOME somewhere where it can persist (eg /home/ou-user/$CODE-$PRESENTATION/openrefine). I wasn't sure whether you had a particular convention in mind for that or how the templating might best support it?

Originally posted by @psychemedia in https://github.com/mmh352/ou-container-builder/issues/11#issuecomment-832073779

mmh352 commented 3 years ago

That's a bug. It should be /home/ou-user/OpenRefine-21J.

psychemedia commented 3 years ago

I've been pondering this: in the general case, eg if you are running an app in a notebook container, it may make more sense to have the app dir mountable as /home/$USER/$CODE-$PRESENTATION/$PATH.

In the special case of a container only containing a single app, /home/$USER/$CODE-$PRESENTATION/ may make more sense?

mmh352 commented 3 years ago

What each container does within /home/ou-user/$CODE-$PRESENTATION is entirely up to the container. Whether all apps share the same directory inside of /home/ou-user/$CODE-$PRESENTATION` or whether each app gets its own directory under the/home/ou-user/$CODE-$PRESENTATIONpath or a mix of the two, anything goes as long as no user-specific and persistent data is stored outside of/home/ou-user/$CODE-$PRESENTATION``.