func serveDummy(ctx context.Context, cfg *config.Config) error {
	go func() {
		err := serveHTTPHealthcheck(ctx, cfg)
		if err != nil {
			logger.Errorf(ctx, "Unable to serve http", cfg.GetGrpcHostAddress(), err)
		}
	}()
	grpcServer := newGRPCDummyServer(ctx, cfg)
	grpcListener, err := net.Listen("tcp", cfg.GetGrpcHostAddress())
	if err != nil {
		return err
	}
	logger.Infof(ctx, "Serving DataCatalog Insecure on port %v", cfg.GetGrpcHostAddress())
	return grpcServer.Serve(grpcListener)
}
Create and start the gRPC server and http healthcheck endpoint
package entrypoints
import (
	"context"
	"net"
	"github.com/flyteorg/datacatalog/pkg/config"
	"github.com/flyteorg/datacatalog/pkg/rpc/datacatalogservice"
	"github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalog"
	"github.com/flyteorg/flytestdlib/logger"
	"github.com/spf13/cobra"
	"google.golang.org/grpc"
	"google.golang.org/grpc/reflection"
)
var serveDummyCmd = &cobra.Command{
	Use:   "serve-dummy",
	Short: "Launches the Data Catalog server without any connections",
	RunE: func(cmd *cobra.Command, args []string) error {
		ctx := context.Background()
		cfg := config.GetConfig()
		return serveDummy(ctx, cfg)
	},
}
func init() {
	RootCmd.AddCommand(serveDummyCmd)
}