The generate_manifest script is a good step in helping us to convert the database index that modeldata manages to a deployment strategy. I.e. how to we create a deployable container that has all of the filesystem resources that the modelmeta database indexes.
One way that would make this better would be to make the output more concise; narrowing down the long list of files to a short list of directories that encapsulate the files.
A filesystem is generally a hierarchical tree, so perhaps we could add a level option to generate_manifest that outputs a list of directories no greater than n levels deep than the given parameter that covers all of the files.
Alternatively, the Linux tree command has a -L level option, so perhaps we could provide guidance as to how to pipe the output of generate_manifest to tree (or other Linux shell commands) to achieve the same result without writing more code.
The
generate_manifest
script is a good step in helping us to convert the database index thatmodeldata
manages to a deployment strategy. I.e. how to we create a deployable container that has all of the filesystem resources that themodelmeta
database indexes.One way that would make this better would be to make the output more concise; narrowing down the long list of files to a short list of directories that encapsulate the files.
A filesystem is generally a hierarchical tree, so perhaps we could add a
level
option togenerate_manifest
that outputs a list of directories no greater thann
levels deep than the given parameter that covers all of the files.Alternatively, the Linux
tree
command has a-L level
option, so perhaps we could provide guidance as to how to pipe the output ofgenerate_manifest
totree
(or other Linux shell commands) to achieve the same result without writing more code.