Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate a build product (e.g., image) #219

Open
crabdancing opened this issue Jul 23, 2024 · 0 comments
Open

Evaluate a build product (e.g., image) #219

crabdancing opened this issue Jul 23, 2024 · 0 comments

Comments

@crabdancing
Copy link

crabdancing commented Jul 23, 2024

There currently seems to be no general-purpose way of using a Colmena hive expression to generate arbitrary build products (e.g., boot images).

Say we have a node called mynode.

If I do colmena repl, and then in the REPL, run: :b nodes.mynode.config.system.build.sdImage, then it will correctly build the microSD image. Same for ISOs, etc. It would be nice to add a command to build an arbitrary target in the colmena expression, e.g., colmena build-product nodes.mynode.config.system.build.sdImage. This could then be simplified by allowing the user to have a buildProducts attribute in the meta part of the Colmena hive schema, which could be as follows:

. . .
# assuming `rec` on global lambda
meta = {
  buildProducts = {
    mynode.sdImage = nodes.mynode.config.system.build.sdImage;
  };
};
. . .

Then you could do:

colmena build-product mynode.sdImage

To build the sdImage of mynode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant