LoginSignup
1
1

More than 5 years have passed since last update.

Riak CS 2.0 を docker で動かす

Last updated at Posted at 2015-07-23

hectcastro/docker-riak-cs を2.0に対応させた。ついでに、make で複数インスタンス起動させたた時に、デフォルトでhaproxyを前に立てるようにした。

ビルド方法

上記をチェックアウトして

make build

起動方法

make start-cluster

5インスタンスが起動する。
起動すると、以下のようにクレデンシャルが表示される。

$ 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]

  Riak CS credentials:

    admin_key: HPHEOYFZ46Y5LWO5WBAB
    admin_secret: 3sDWdPDIc_4m09s5NfjLBjVTuoZTh_f8eFhEbQ==

Please wait approximately 30 seconds for the cluster to stabilize.

停止方法

make stop-cluster

s3cmd の設定

上記クレデンシャルを、~/.s3cfg に記載する。
最後の行の signature_v2 = True をわすれずに。
Riak CSはs3.amazon.com のプロキシとして使用するとかの説明は、コチラ を参照

[default]
access_key = HPHEOYFZ46Y5LWO5WBAB
bucket_location = US
cloudfront_host = cloudfront.amazonaws.com
cloudfront_resource = /2010-07-15/distribution
default_mime_type = binary/octet-stream
delete_removed = False
dry_run = False
encoding = UTF-8
encrypt = False
follow_symlinks = False
force = False
get_continue = False
gpg_command = /usr/local/bin/gpg
gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_passphrase = lksa13
guess_mime_type = True
host_base = s3.amazonaws.com
host_bucket = %(bucket)s.s3.amazonaws.com
human_readable_sizes = False
list_md5 = False
log_target_prefix = 
preserve_attrs = True
progress_meter = True
proxy_host = localhost
proxy_port = 8080
recursive = False
recv_chunk = 4096
reduced_redundancy = False
secret_key = 3sDWdPDIc_4m09s5NfjLBjVTuoZTh_f8eFhEbQ==
send_chunk = 4096
simpledb_host = sdb.amazonaws.com
skip_existing = False
socket_timeout = 300
urlencoding_mode = normal
use_https = False
verbosity = WARNING
signature_v2 = True
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1