Skip to content

Instantly share code, notes, and snippets.

@wang-zhijun
Last active April 20, 2016 13:35
Show Gist options
  • Save wang-zhijun/27135d8e201c85867fae50f9c1de987e to your computer and use it in GitHub Desktop.
Save wang-zhijun/27135d8e201c85867fae50f9c1de987e to your computer and use it in GitHub Desktop.
docker riak-cs
brew install boot2docker
boot2docker init
boot2docker up
make build
$ make start-cluster
DOCKER_RIAK_CS_HAPROXY=1 DOCKER_RIAK_CS_AUTOMATIC_CLUSTERING=1 DOCKER_RIAK_CS_CLUSTER_SIZE=5 ./bin/start-cluster.sh

Bringing up cluster nodes:

  Successfully brought up [riak-cs01]
  Successfully brought up [riak-cs02]
  Successfully brought up [riak-cs03]
  Successfully brought up [riak-cs04]
  Successfully brought up [riak-cs05]

  Successfully brought up [riak-cs-haproxy]

  Downloading insecure SSH key...

  Riak CS credentials:

    admin_key: AUPGJ_DMAALX3I3GZDCL
    admin_secret: PfErLvHxG6Q7nxDkmumC3bVAfVw-_Ezul3BnHQ==

Please wait approximately 30 seconds for the cluster to stabilize.

.bash_profileに追加

export DOCKER_HOST=tcp://192.168.59.103:2376
export DOCKER_CERT_PATH=/Users/wang/.boot2docker/certs/boot2docker-vm
export DOCKER_TLS_VERIFY=1

Or run: eval "$(boot2docker shellinit)"

s3cmdの設定ファイル

proxy_host = 192.168.59.103
proxy_port = 8080
signature_v2 = True
use_https = False

docker containerに入るため,コンテナのIPを調べる.

$ docker inspect $CONTAINER_ID | egrep IPAddress
curl -o insecure_key -fSL https://raw.githubusercontent.com/phusion/baseimage-docker/master/image/services/sshd/keys/insecure_key

$ docker inspect 69d1ac221f40 | egrep IPAddress
            "SecondaryIPAddresses": null,
            "IPAddress": "172.17.0.2",
                    "IPAddress": "172.17.0.2",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment