MCPcopy Index your code
hub / github.com/cortexproject/cortex / GetDefaultImage

Function GetDefaultImage

integration/e2ecortex/services.go:24–32  ·  view source on GitHub ↗

GetDefaultImage returns the Docker image to use to run Cortex.

()

Source from the content-addressed store, hash-verified

22
23// GetDefaultImage returns the Docker image to use to run Cortex.
24func GetDefaultImage() string {
25 // Get the cortex image from the CORTEX_IMAGE env variable,
26 // falling back to "quay.io/cortexproject/cortex:latest"
27 if os.Getenv("CORTEX_IMAGE") != "" {
28 return os.Getenv("CORTEX_IMAGE")
29 }
30
31 return "quay.io/cortexproject/cortex:latest"
32}
33
34func NewDistributor(name string, store RingStore, address string, flags map[string]string, image string) *CortexService {
35 return NewDistributorWithConfigFile(name, store, address, "", flags, image)

Calls

no outgoing calls

Tested by

no test coverage detected