OdbDesign icon indicating copy to clipboard operation
OdbDesign copied to clipboard

Decide on filesystem layout

Open nam20485 opened this issue 4 months ago • 3 comments

I am not clear on the idiomatic/conventional way to lay out the directory structure for an app such as this. I suppose putting the executable in /usr/local/bin would be most correct?

However there are two other directories required by the executable at runtime:

  1. templates/ (where mustache templates for templated HTML endpoints created by the user are found, needs read access)
  2. designs/ (where uploaded ODB++ designs are located and then read from, needs r/w access)

Currently the directory structure is thus:

/OdbDesignServer
   /templates
   /designs
   OdbDesignServer (exe)

I suppose the two runtime directories should be placed in /var somewhere?

The path for the two directories can be specificed at launch via CLI args. Try ObdDesignServer --help or see the ENTRYPOINT key in the Dockerfile for more details.

nam20485 avatar Feb 26 '24 23:02 nam20485