GetDefaultImage returns the Docker image to use to run Cortex.
()
| 22 | |
| 23 | // GetDefaultImage returns the Docker image to use to run Cortex. |
| 24 | func 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 | |
| 34 | func NewDistributor(name string, store RingStore, address string, flags map[string]string, image string) *CortexService { |
| 35 | return NewDistributorWithConfigFile(name, store, address, "", flags, image) |
no outgoing calls
no test coverage detected