Remove use of `discourse/base:aarch64` in launcher2 (#851)
Since fc61b8a850
, we started shipping
manifests for the `discourse/base` images so we don't have to
specifically pull the tag for arm64.
This commit is contained in:
parent
9cd8186278
commit
cfe8aa0df0
|
@ -5,7 +5,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"regexp"
|
"regexp"
|
||||||
"runtime"
|
|
||||||
"slices"
|
"slices"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
@ -16,13 +15,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const defaultBootCommand = "/sbin/boot"
|
const defaultBootCommand = "/sbin/boot"
|
||||||
|
const defaultBaseImage = "discourse/base:2.0.20231121-0024"
|
||||||
func DefaultBaseImage() string {
|
|
||||||
if runtime.GOARCH == "arm64" {
|
|
||||||
return "discourse/base:aarch64"
|
|
||||||
}
|
|
||||||
return "discourse/base:2.0.20231121-0024"
|
|
||||||
}
|
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Name string `yaml:-`
|
Name string `yaml:-`
|
||||||
|
@ -76,7 +69,7 @@ func LoadConfig(dir string, configName string, includeTemplates bool, templatesD
|
||||||
config := &Config{
|
config := &Config{
|
||||||
Name: configName,
|
Name: configName,
|
||||||
Boot_Command: defaultBootCommand,
|
Boot_Command: defaultBootCommand,
|
||||||
Base_Image: DefaultBaseImage(),
|
Base_Image: defaultBaseImage,
|
||||||
}
|
}
|
||||||
|
|
||||||
matched, _ := regexp.MatchString("[[:upper:]/ !@#$%^&*()+~`=]", configName)
|
matched, _ := regexp.MatchString("[[:upper:]/ !@#$%^&*()+~`=]", configName)
|
||||||
|
|
Loading…
Reference in New Issue