fix: Put export script in own image

HEREDOC support for podman doesn't work exactly 1-1 with Dockerfiles. This fix gives the export script its own image that we mount.
This commit is contained in:
Gerald Pinder 2024-03-27 00:08:58 -04:00
parent ae9c3ef83a
commit 19c93ce742
9 changed files with 29 additions and 28 deletions

View file

@ -75,12 +75,10 @@ impl<'a> Module<'a> {
#[must_use]
pub fn print_module_context(&'a self) -> String {
serde_json::to_string(self)
.unwrap_or_else(|e| {
error!("Failed to parse module!!!!!: {e}");
process::exit(1);
})
.replace('"', r#"\""#)
serde_json::to_string(self).unwrap_or_else(|e| {
error!("Failed to parse module!!!!!: {e}");
process::exit(1);
})
}
#[must_use]