Is there a way to "unbuild" a bundle? #669
-
I have a hierarchy of folders and data.json files that get bundled up and published as a tar.gz in a shared location by my authorization service. Each service instance checks to see if another server has updated the tar and grabs it accordingly. But when the latest tar.gz is pulled down, is there a way to "unbundle" the data back into its original folder structure? If I do a manual, run of the mill un-tar and un-gzip type operation there will only be a single data.json extracted in the main directory. But that data.json was an aggregation of the original hierarchy and multiple data.json files created with "opa build". Is there any way to "unbuild" back to its original state? Or do I need write a custom un-building based on my .manifest and knowledge of my particular data? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, OPA doesn't keep the information that would be required to restore a tarballed bundle to it's original directory structure. But the bundle is just a tarball after all, so you could build it yourself using the same run of the mill commands as you used to unbuild it :) That way your bundle could mirror exactly what the directory structure on disk looked like inside the bundle. |
Beta Was this translation helpful? Give feedback.
No, OPA doesn't keep the information that would be required to restore a tarballed bundle to it's original directory structure. But the bundle is just a tarball after all, so you could build it yourself using the same run of the mill commands as you used to unbuild it :) That way your bundle could mirror exactly what the directory structure on disk looked like inside the bundle.