...
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run

This commit is contained in:
2025-06-15 22:12:15 +02:00
parent 3a6bde02d5
commit f0d7636cda
10 changed files with 287 additions and 149 deletions

31
installers/base.rhai Normal file
View File

@@ -0,0 +1,31 @@
fn mycelium(){
let name="mycelium";
let url="https://github.com/threefoldtech/mycelium/releases/download/v0.6.1/mycelium-x86_64-unknown-linux-musl.tar.gz";
download(url,`/tmp/${name}`,5000);
copy_bin(`/tmp/${name}/*`);
delete(`/tmp/${name}`);
let name="containerd";
}
fn zinit(){
let name="zinit";
let url="https://github.com/threefoldtech/zinit/releases/download/v0.2.25/zinit-linux-x86_64";
download_file(url,`/tmp/${name}`,5000);
copy_bin(`/tmp/${name}`);
delete(`/tmp/${name}`);
let name="containerd";
}
platform_check_linux_x86();
// mycelium();
zinit();
"done"

View File

@@ -1,4 +1,7 @@
platform_check_linux_x86();
exec(`https://git.threefold.info/herocode/sal/raw/branch/main/installers/base.rhai`);
//install all we need for nerdctl
exec(`https://git.threefold.info/herocode/sal/raw/branch/main/installers/nerctl.rhai`);

View File

@@ -27,13 +27,13 @@ fn ipfs_download(){
let name="ipfs";
let url="https://github.com/ipfs/kubo/releases/download/v0.34.1/kubo_v0.34.1_linux-amd64.tar.gz";
download(url,`/tmp/${name}`,20);
copy(`/tmp/${name}/kubo/ipfs`,"/root/hero/bin/ipfs");
// delete(`/tmp/${name}`);
copy_bin(`/tmp/${name}/kubo/ipfs`);
delete(`/tmp/${name}`);
}
platform_check_linux_x86();
nerdctl_download();
// ipfs_download();