mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-26 21:22:16 +08:00 
			
		
		
		
	* build: implement services image build. * remove unused tools * update test. * update images. * update dockerfile and go mod. * update go mod. * Add comments. * update go pkg. * update loadConfig and discovery logic in kubernetes. * update go pkg and discovery field. * update Load method args.
		
			
				
	
	
		
			43 lines
		
	
	
		
			551 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			551 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build mage
 | |
| // +build mage
 | |
| 
 | |
| package main
 | |
| 
 | |
| import (
 | |
| 	"flag"
 | |
| 	"os"
 | |
| 
 | |
| 	"github.com/openimsdk/gomake/mageutil"
 | |
| )
 | |
| 
 | |
| var Default = Build
 | |
| 
 | |
| func Build() {
 | |
| 	flag.Parse()
 | |
| 
 | |
| 	bin := flag.Args()
 | |
| 	if len(bin) != 0 {
 | |
| 		bin = bin[1:]
 | |
| 	}
 | |
| 
 | |
| 	mageutil.Build(bin)
 | |
| }
 | |
| 
 | |
| func Start() {
 | |
| 	mageutil.InitForSSC()
 | |
| 	err := setMaxOpenFiles()
 | |
| 	if err != nil {
 | |
| 		mageutil.PrintRed("setMaxOpenFiles failed " + err.Error())
 | |
| 		os.Exit(1)
 | |
| 	}
 | |
| 	mageutil.StartToolsAndServices()
 | |
| }
 | |
| 
 | |
| func Stop() {
 | |
| 	mageutil.StopAndCheckBinaries()
 | |
| }
 | |
| 
 | |
| func Check() {
 | |
| 	mageutil.CheckAndReportBinariesStatus()
 | |
| }
 |