kube-forge v2: embede python with ansible (kubespray) and cobra as cli building tool

This commit is contained in:
2025-06-22 00:37:47 +03:00
parent c2df2abc78
commit 4142a9db61
830 changed files with 874 additions and 2047 deletions

View File

@@ -0,0 +1,27 @@
package main
import (
"runtime"
"strings"
"github.com/kluctl/go-embed-python/pip"
)
var platforms = map[string][]string{
"darwin-amd64": {"macosx_11_0_x86_64", "macosx_12_0_x86_64"},
"darwin-arm64": {"macosx_11_0_arm64", "macosx_12_0_arm64"},
"linux-amd64": {"manylinux_2_17_x86_64", "manylinux_2_28_x86_64", "manylinux2014_x86_64"},
"linux-arm64": {"manylinux_2_17_aarch64", "manylinux_2_28_aarch64", "manylinux2014_aarch64"},
"windows-amd64": {"win_amd64"},
}
func main() {
os := runtime.GOOS
arch := runtime.GOARCH
pipPlatform := platforms[strings.Join([]string{os, arch}, "-")]
err := pip.CreateEmbeddedPipPackages("requirements.txt", os, arch, pipPlatform, "./data/")
if err != nil {
panic(err)
}
}