feat(front): add front app build command and minio support
- Add new command "front" with flags for replica count and vendor - Implement front app build logic in maker.AppFront method - Add minio to make command list - Add minio and minio-init images to image list - Change EMQX dependency path to "dependency/emqx" - Update app OEM logic to use model.GetVendor for vendor info - Fix app OEM download and rename logic with updated vendor fields - Modify nginx deployment manifest to allow configurable replicas - Update user app mysql address to mysql-cluster-mysql-master.db-mysql:3306 - Add server_license_init.conf generation script for configmap upsert - Clean and reformat imports across several files - Remove unused package files for make.mysql.go, make.redis.go, make.longhorn.go
This commit is contained in:
@@ -18,6 +18,7 @@ func App() *cobra.Command {
|
||||
appGateway(),
|
||||
appMie(),
|
||||
appOEM(),
|
||||
appFront(),
|
||||
appNginx(),
|
||||
)
|
||||
|
||||
@@ -121,6 +122,27 @@ func appOEM() *cobra.Command {
|
||||
return _cmd
|
||||
}
|
||||
|
||||
func appFront() *cobra.Command {
|
||||
var (
|
||||
replica int
|
||||
vendor string
|
||||
)
|
||||
|
||||
_cmd := &cobra.Command{
|
||||
Use: "front",
|
||||
Short: "Make Front App",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
mk := maker.NewMaker(opt.Cfg.Make.Dir)
|
||||
return mk.AppFront(cmd.Context(), vendor, replica)
|
||||
},
|
||||
}
|
||||
|
||||
_cmd.Flags().IntVar(&replica, "replica-count", 2, "Replica count")
|
||||
_cmd.Flags().StringVar(&vendor, "vendor", "standard", "Vendor name")
|
||||
|
||||
return _cmd
|
||||
}
|
||||
|
||||
func appNginx() *cobra.Command {
|
||||
var (
|
||||
replica int
|
||||
|
||||
Reference in New Issue
Block a user