Skip to content

Commit

Permalink
add mount point to image meta data (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcumming authored Oct 3, 2023
1 parent f242bdb commit f34adf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stackinator/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def configuration_meta(self, recipe):
"args": sys.argv,
"python": sys.executable,
}
meta["mount"] = str(recipe.mount)
meta["spack"] = recipe.config["spack"]
self._configuration_meta = meta

Expand All @@ -91,6 +92,7 @@ def environment_meta(self, recipe):
{
name: "prgenv-gnu",
description: "useful programming tools",
mount: "/user-environment"
modules: {
"root": /user-environment/modules,
},
Expand All @@ -113,6 +115,7 @@ def environment_meta(self, recipe):
meta["name"] = conf["name"]
meta["description"] = conf["description"]
meta["views"] = recipe.environment_view_meta
meta["mount"] = str(recipe.mount)
modules = None
if conf["modules"]:
modules = {"root": str(recipe.mount / "modules")}
Expand Down

0 comments on commit f34adf7

Please sign in to comment.