Last active
January 22, 2016 20:43
-
-
Save lmars/fca0f18b4ecd507fb39a to your computer and use it in GitHub Desktop.
Revisions
-
lmars revised this gist
Feb 24, 2015 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,10 @@ # create a redis app flynn create --remote "" redis # create a release using the latest (at the time of writing) Docker Redis image flynn -a redis release add -f config.json "https://registry.hub.docker.com?name=redis&id=868be653dea3ff6082b043c0f34b95bb180cc82ab14a18d9d6b8e27b7929762c" # scale the server to one process. This may time out initially as the server pulls the image, but watch "flynn -a redis ps" and should come up. flynn -a redis scale server=1 # redis should now be running in the cluster at redis.discoverd:6379 -
lmars revised this gist
Feb 24, 2015 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,10 @@ flynn create --remote "" redis flynn -a redis release add -f config.json "https://registry.hub.docker.com?name=redis&id=868be653dea3ff6082b043c0f34b95bb180cc82ab14a18d9d6b8e27b7929762c" flynn -a redis scale server=1 # redis should now be running in the cluster at redis.discoverd:6379 flynn -a redis run redis-cli -h redis.discoverd -p 6379 redis.discoverd:6379> PING PONG # note that although the container has a data volume, they are not currently sticky so restarting the container will get a new data directory. This will be fixed when we have a Redis appliance / sticky volumes. -
lmars created this gist
Feb 24, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ flynn create --remote "" redis flynn -a redis release add -f config.json "https://registry.hub.docker.com?name=redis&id=868be653dea3ff6082b043c0f34b95bb180cc82ab14a18d9d6b8e27b7929762c" flynn -a redis scale server=1 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ { "processes": { "server": { "cmd": ["redis-server"], "data": true, "ports": [{ "port": 6379, "proto": "tcp", "service": { "name": "redis", "create": true, "check": { "type": "tcp" } } }] } } }