From 34f016a7a6668c77cbfbd390c40f1e2bed9adb08 Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Sun, 8 Sep 2024 23:11:55 -0700 Subject: [PATCH] DEV: export default base image (#868) allows default base image to be more portable. --- launcher_go/v2/config/config.go | 3 +-- launcher_go/v2/utils/consts.go | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher_go/v2/config/config.go b/launcher_go/v2/config/config.go index 01cee72..41e5718 100644 --- a/launcher_go/v2/config/config.go +++ b/launcher_go/v2/config/config.go @@ -15,7 +15,6 @@ import ( ) const defaultBootCommand = "/sbin/boot" -const defaultBaseImage = "discourse/base:2.0.20240825-0027" type Config struct { Name string `yaml:-` @@ -69,7 +68,7 @@ func LoadConfig(dir string, configName string, includeTemplates bool, templatesD config := &Config{ Name: configName, Boot_Command: defaultBootCommand, - Base_Image: defaultBaseImage, + Base_Image: utils.DefaultBaseImage, } matched, _ := regexp.MatchString("[[:upper:]/ !@#$%^&*()+~`=]", configName) diff --git a/launcher_go/v2/utils/consts.go b/launcher_go/v2/utils/consts.go index 8d6f4d2..01e0bcd 100644 --- a/launcher_go/v2/utils/consts.go +++ b/launcher_go/v2/utils/consts.go @@ -10,6 +10,7 @@ import ( const Version = "v2.0.0" const DefaultNamespace = "local_discourse" +const DefaultBaseImage = "discourse/base:2.0.20240825-0027" // Known secrets, or otherwise not public info from config so we can build public images var KnownSecrets = []string{ -- 2.25.1