-
Notifications
You must be signed in to change notification settings - Fork 53
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
elemental
cli to embed statically snapshots of the framework in releases
#1305
Comments
elemental
cli to embed statically snapshots of the framework
elemental
cli to embed statically snapshots of the frameworkelemental
cli to embed statically snapshots of the framework in releases
hey this sounds cool, let me read more abo
🏃 🗡️ 💀 🗡️ 💀 🗡️ 💀 |
🤣 no need to use go generate, everything else to prepare the assets would work as well. go generate just make it tight to the code so what it does is more obvious in the code context, but that's just one way of doing this |
Closing. While this is not needed, it is a tempting and interesting idea for other aspects. Although there is no specific interest/requirement bound to this feature for the moment. Outcome from discussion in #1349 |
This card is about having an "extended" version of the compiled elemental-cli binary with profile bundles that can be installed.
In this way, we can release elemental-cli binary which includes a set of profiles that can be installed while building a derivative for example with (
airgap-install
here is completely made up, looking for improvement)elemental airgap-install <profile>
.While building the "extended" elemental-cli, we create the profiles with the not-extended-
elemental
cli, which then are embedded into the extended version with the golangembed
native feature. e.g. We could just use go generate tags for this.This allows then whoever is building a derivative to do something like the following in the Dockerfiles (applies to sandboxed builds as well):
See also rancher/elemental@048ab0b for a quick sketch up of the above (missing CLI hooks, that's just a basic skeleton/draft).
This mechanism ideally would replace static framework assets included in the Dockerfile currently used for sandboxed builds. For example, in os2 since we switched to teal we bundle the framework statically in the source to help on sandboxed builds (OBS). But this approach is rather difficult to sustain.
The text was updated successfully, but these errors were encountered: