This commit is contained in:
31
installers/base.rhai
Normal file
31
installers/base.rhai
Normal 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"
|
@@ -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`);
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user