refactor: streamline container setup and dependencies

- Remove `xz-utils` from initial package install
- Remove password/secret check in `obj_init`
- Add on-demand `crun` installation during container create
- Import `herorunner_installer` for `crun` setup
This commit is contained in:
Mahmoud-Emad
2025-09-07 19:01:08 +03:00
parent 7001e8a2a6
commit ef211882af
3 changed files with 8 additions and 6 deletions

View File

@@ -18,9 +18,6 @@ pub mut:
// your checking & initialization code if needed
fn obj_init(mycfg_ HeroRunner) !HeroRunner {
mut mycfg := mycfg_
if mycfg.password == '' && mycfg.secret == '' {
return error('password or secret needs to be filled in for ${mycfg.name}')
}
return mycfg
}