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 characters
$ curl -i "http://localhost:49156/buckets/test/keys/jimmy" | |
HTTP/1.1 200 OK | |
X-Riak-Vclock: a85hYGBgzmDKBVIc+xkWvg92enYzgymRMY+VYXvK9jN8UKkT7BMrgVJ3gFJMQKk9SFJhySy3gFL3oVJHQFJZAA== | |
Vary: Accept-Encoding | |
Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact) | |
Link: </buckets/test>; rel="up" | |
Last-Modified: Mon, 07 Apr 2014 18:04:52 GMT | |
ETag: "4rFoZHwpGyBGzpCCFpcctg" | |
Date: Mon, 07 Apr 2014 18:06:44 GMT | |
Content-Type: text/plain |
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 characters
$ curl -i "http://localhost:49160/buckets/test/keys/jimmy" \ | |
-X PUT \ | |
-H "Content-type: text/plain" \ | |
-d "McNulty" | |
HTTP/1.1 204 No Content | |
Vary: Accept-Encoding | |
Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact) | |
Date: Mon, 07 Apr 2014 18:04:52 GMT | |
Content-Type: text/plain | |
Content-Length: 0 |
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 characters
$ docker ps | |
805fe19305ac hectcastro/riak:latest /sbin/my_init 15 seconds ago Up 14 seconds 0.0.0.0:49161->8087/tcp, 0.0.0.0:49162->8098/tcp riak05 | |
fba2c4d85aac hectcastro/riak:latest /sbin/my_init 18 seconds ago Up 17 seconds 0.0.0.0:49159->8087/tcp, 0.0.0.0:49160->8098/tcp riak04 | |
cddca24273af hectcastro/riak:latest /sbin/my_init 21 seconds ago Up 21 seconds 0.0.0.0:49157->8087/tcp, 0.0.0.0:49158->8098/tcp riak03 | |
9cac9ef525a5 hectcastro/riak:latest /sbin/my_init 25 seconds ago Up 24 seconds 0.0.0.0:49155->8087/tcp, 0.0.0.0:49156->8098/tcp riak02 | |
f60c2a437708 hectcastro/riak:latest /sbin/my_init 28 seconds ago Up 28 seconds 0.0.0.0:49153->8087/tcp, 0.0.0.0:49154->8098/tcp riak01,riak02/seed,riak03/seed,riak04/seed,riak05/seed |
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 characters
$ make test-cluster | egrep "ring_ownership" | |
"ring_ownership": "[{'[email protected]',13},\n {'[email protected]',13},\n {'[email protected]',13},\n {'[email protected]',13},\n {'[email protected]',12}]", |
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 characters
$ make test-cluster | egrep -A6 "ring_members" | |
"ring_members": [ | |
"[email protected]", | |
"[email protected]", | |
"[email protected]", | |
"[email protected]", | |
"[email protected]" | |
], |
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 characters
$ DOCKER_RIAK_AUTOMATIC_CLUSTERING=1 DOCKER_RIAK_CLUSTER_SIZE=5 make start-cluster | |
./bin/start-cluster.sh | |
Bringing up cluster nodes: | |
Successfully brought up [riak01] | |
Successfully brought up [riak02] | |
Successfully brought up [riak03] | |
Successfully brought up [riak04] | |
Successfully brought up [riak05] |
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 characters
$ docker images | egrep riak | |
hectcastro/riak latest b486d3732ec7 2 days ago 415.7 MB |
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 characters
$ git clone https://github.com/hectcastro/docker-riak.git | |
$ cd docker-riak | |
$ make build |
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 characters
$ cd vagrant-datomic-riak | |
$ export DATOMIC_RIAK_NODES=1 | |
$ export DATOMIC_LICENSE_KEY="..." | |
$ vagrant up |
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 characters
$ curl "http://127.0.0.1:8098/buckets/datomic/keys/config\\zookeeper" \ | |
-X PUT / | |
-d "127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183" \ | |
-H "Content-Type: text/plain; charset=utf-8" |
NewerOlder