OdbDesign
OdbDesign copied to clipboard
Decide on filesystem layout
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:
-
templates/
(where mustache templates for templated HTML endpoints created by the user are found, needs read access) -
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.