Local VM image building

This commit is contained in:
AlexSSD7 2023-08-30 12:39:38 +01:00
commit e7605dc289
13 changed files with 359 additions and 239 deletions

14
constants/arch.go Normal file
View file

@ -0,0 +1,14 @@
package constants
import "runtime"
func GetUnixWorkArch() string {
arch := "x86_64"
if runtime.GOOS == "arm64" {
arch = "arm64"
}
// CPU architectures other than amd64 and arm64 are not yet natively supported.
// Running on a non-officially-supported arch will result in use of x86_64 VM.
return arch
}