Created
February 1, 2016 11:58
-
-
Save stevenlivz/a9fbe51702dfdf63e74d to your computer and use it in GitHub Desktop.
riak cluster config
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
| #only get the ip of the seed | |
| if [[ -z ${SEED_CONTAINER_IP} ]] ; then | |
| SEED_CONTAINER_IP=$(docker inspect "${CONTAINER_ID}" | grep IPAddress | cut -d '"' -f 4) | |
| SEED_CONTAINER_IP=$(echo $SEED_CONTAINER_IP | tr -d ' ') | |
| fi | |
| docker run -e "DOCKER_RIAK_CLUSTER_SIZE=${DOCKER_RIAK_CLUSTER_SIZE}" \ | |
| -e "DOCKER_RIAK_AUTOMATIC_CLUSTERING=${DOCKER_RIAK_AUTOMATIC_CLUSTERING}" \ | |
| -e "DOCKER_RIAK_BACKEND=${DOCKER_RIAK_BACKEND}" \ | |
| -e "SEED_PORT_8098_TCP_ADDR=${SEED_CONTAINER_IP}" \ | |
| -p $publish_http_port \ | |
| -p $publish_pb_port \ | |
| --name "riak${index}" \ | |
| --net "${DOCKER_RIAK_NETWORK}" \ | |
| -d hectcastro/riak > /dev/null 2>&1 | |
| ###--link "riak01:seed" \ | |
| ###--net "${DOCKER_RIAK_NETWORK}" \ | |
| else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment