Local VM image building
This commit is contained in:
parent
583f443e7e
commit
e7605dc289
13 changed files with 359 additions and 239 deletions
14
constants/arch.go
Normal file
14
constants/arch.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue