fix for auto memcached setup
This commit is contained in:
@@ -456,18 +456,20 @@ func deployServiceWorkers(image string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
isMemcachedRunning, err := checkMemcached(ctx, dockercli)
|
// Only do this if no memcached is set manually
|
||||||
if err != nil {
|
if os.Getenv("SHUFFLE_MEMCACHED") == "" {
|
||||||
log.Printf("[ERROR] Failed checking memcached: %s", err)
|
isMemcachedRunning, err := checkMemcached(ctx, dockercli)
|
||||||
}
|
if err != nil {
|
||||||
if isMemcachedRunning == false {
|
log.Printf("[ERROR] Failed checking memcached: %s", err)
|
||||||
log.Printf("[ERROR] Memcached is not running. Will try to deploy it.")
|
}
|
||||||
deployMemcached(dockercli)
|
if isMemcachedRunning == false {
|
||||||
}
|
log.Printf("[ERROR] Memcached is not running. Will try to deploy it.")
|
||||||
|
deployMemcached(dockercli)
|
||||||
|
}
|
||||||
|
|
||||||
ip := "shuffle-cache"
|
ip := "shuffle-cache"
|
||||||
|
os.Setenv("SHUFFLE_MEMCACHED", fmt.Sprintf("%s:11211", ip))
|
||||||
os.Setenv("SHUFFLE_MEMCACHED", fmt.Sprintf("%s:11211", ip))
|
}
|
||||||
|
|
||||||
defaultNetworkAttach := false
|
defaultNetworkAttach := false
|
||||||
if containerId != "" {
|
if containerId != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user