From ed6d9fe1e471d75b6cdb238313c1031c1ee8dad9 Mon Sep 17 00:00:00 2001 From: tifayuki Date: Mon, 3 Apr 2017 11:15:05 -0700 Subject: [PATCH] deprecate the repo --- Dockerfile | 27 ---- README.md | 62 +------- app.config | 345 ------------------------------------------ basho.apt.key | 64 -------- circle.yml | 10 -- create_certificate.sh | 9 -- run.sh | 22 --- set_riak_password.sh | 31 ---- supervisord-riak.conf | 8 - 9 files changed, 3 insertions(+), 575 deletions(-) delete mode 100644 Dockerfile delete mode 100644 app.config delete mode 100644 basho.apt.key delete mode 100644 circle.yml delete mode 100755 create_certificate.sh delete mode 100755 run.sh delete mode 100755 set_riak_password.sh delete mode 100644 supervisord-riak.conf diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 2fc06f3..0000000 --- a/Dockerfile +++ /dev/null @@ -1,27 +0,0 @@ -FROM tutum/curl:trusty -MAINTAINER Israel Gayoso igayoso@gmail.com - -RUN curl https://packagecloud.io/gpg.key | apt-key add - && \ - apt-get update && \ - apt-get install -y apt-transport-https supervisor openssl pwgen && \ - echo "deb https://packagecloud.io/basho/riak/ubuntu/ trusty main" >> /etc/apt/sources.list.d/basho.list && \ - echo "deb-src https://packagecloud.io/basho/riak/ubuntu/ trusty main" >> /etc/apt/sources.list.d/basho.list && \ - apt-get update && \ - apt-get install -y riak && \ - rm -rf /var/lib/apt/lists/* && \ - sed -i -e s/listener.http.internal/listener.https.internal/g /etc/riak/riak.conf - -# Riak's config -ENV RIAK_NODE_NAME "127.0.0.1" -ADD ./app.config /etc/riak/app.config - -# Copy init script to make configuration after first run and password set -ADD ./run.sh /run.sh -ADD ./set_riak_password.sh /set_riak_password.sh -ADD ./create_certificate.sh /create_certificate.sh -ADD supervisord-riak.conf /etc/supervisor/conf.d/supervisord-riak.conf - -# Expose protocol buffers and HTTPS -EXPOSE 8087 8098 - -CMD ["/run.sh"] diff --git a/README.md b/README.md index c8ae597..31edaa0 100644 --- a/README.md +++ b/README.md @@ -1,64 +1,8 @@ tutum-docker-riak ================= -Base docker image to run a riak database server +This repo is deprecated: we are not going to maintain it anymore. +You can visit [Docker Store](https://store.docker.com) to explore similar images. -Usage ------ - -To create the image `tutum/riak`, execute the following command on the tutum-riak folder: - - docker build -t tutum/riak . - - -Running the riak server --------------------------- - -Run the following command to start riak: - - docker run -d -p 8087:8087 -p 8098:8098 tutum/riak - -The first time that you run your container, a new random password will be set. -To get the password, check the logs of the container by running: - - docker logs - -You will see an output like the following: - - ======================================================================== - You can now use riak Server using: - - wget --no-check-certificate -qO- https://riakuser:FVPNf35hXeXG@host:port/ping - - Or use protocol buffer with same user/password. - - Please remember to change the above password as soon as possible! - You must use https protocol. http is disable for security reasons - ======================================================================== - -In this case, `FVPNf35hXeXG` is the password set. -You can then connect to riak (using API): - - wget --no-check-certificate -qO- https://riakuser:FVPNf35hXeXG@host:port/ - -Done! - - -Setting a specific password for the riakuser account -------------------------------------------------- - -If you want to use a preset password instead of a randomly generated one, you can -set the environment variable `RIAK_PASS` to your specific password when running the container: - - docker run -d -p 8087:8087 -p 8098:8098 -e RIAK_PASS="mypass" tutum/riak - -You can now test your new admin password: - - wget --no-check-certificate -qO- https://riakuser:mypass@host:port/ - -Using riak with Protocol Buffers --------------------------------- - -Remember that you can use Protocol Buffer to connect riak. You must use same user and password -that it's generated random (or set in ENV) but using Protocol Buffer port 8087. +To access the last commit of the code, please switch to [master branch](https://github.com/tutumcloud/riak/tree/master). diff --git a/app.config b/app.config deleted file mode 100644 index bd5d66b..0000000 --- a/app.config +++ /dev/null @@ -1,345 +0,0 @@ -%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- -%% ex: ft=erlang ts=4 sw=4 et -[ - %% Riak Client APIs config - {riak_api, [ - %% pb_backlog is the maximum length to which the queue of pending - %% connections may grow. If set, it must be an integer >= 0. - %% By default the value is 5. If you anticipate a huge number of - %% connections being initialised *simultaneously*, set this number - %% higher. - %% {pb_backlog, 64}, - - %% pb is a list of IP addresses and TCP ports that the Riak - %% Protocol Buffers interface will bind. - {pb, [ {"0.0.0.0", 8087 } ]} - ]}, - - %% Riak Core config - {riak_core, [ - %% Default location of ringstate - {ring_state_dir, "/var/lib/riak/ring"}, - - %% Default ring creation size. Make sure it is a power of 2, - %% e.g. 16, 32, 64, 128, 256, 512 etc - %{ring_creation_size, 64}, - - %% http is a list of IP addresses and TCP ports that the Riak - %% HTTP interface will bind. - %{http, [ {"0.0.0.0", 8098 } ]}, - - %% https is a list of IP addresses and TCP ports that the Riak - %% HTTPS interface will bind. - {https, [ { "0.0.0.0", 8098 }] }, - - %% Default cert and key locations for https can be overridden - %% with the ssl config variable, for example: - {ssl, [ - {certfile, "/etc/riak/host.crt"}, - {keyfile, "/etc/riak/host.key"}, - {cacertfile, "/etc/riak/rootCA.crt"} - ]}, - - %% riak_handoff_port is the TCP port that Riak uses for - %% intra-cluster data handoff. - {handoff_port, 8099 }, - - %% To encrypt riak_core intra-cluster data handoff traffic, - %% uncomment the following line and edit its path to an - %% appropriate certfile and keyfile. (This example uses a - %% single file with both items concatenated together.) - %{handoff_ssl_options, [{certfile, "/tmp/erlserver.pem"}]}, - - %% DTrace support - %% Do not enable 'dtrace_support' unless your Erlang/OTP - %% runtime is compiled to support DTrace. DTrace is - %% available in R15B01 (supported by the Erlang/OTP - %% official source package) and in R14B04 via a custom - %% source repository & branch. - {dtrace_support, false}, - - %% Health Checks - %% If disabled, health checks registered by an application will - %% be ignored. NOTE: this option cannot be changed at runtime. - %% To re-enable, the setting must be changed and the node restarted. - %% NOTE: As of Riak 1.3.2, health checks are deprecated as they - %% may interfere with the new overload protection mechanisms. - %% If there is a good reason to re-enable them, you must uncomment - %% this line and also add an entry in the riak_kv section: - %% {riak_kv, [ ..., {enable_health_checks, true}, ...]} - %% {enable_health_checks, true}, - - %% Platform-specific installation paths (substituted by rebar) - {platform_bin_dir, "/usr/sbin"}, - {platform_data_dir, "/var/lib/riak"}, - {platform_etc_dir, "/etc/riak"}, - {platform_lib_dir, "/usr/lib/riak/lib"}, - {platform_log_dir, "/var/log/riak"} - ]}, - - %% Riak KV config - {riak_kv, [ - %% Storage_backend specifies the Erlang module defining the storage - %% mechanism that will be used on this node. - {storage_backend, riak_kv_eleveldb_backend}, - - %% raw_name is the first part of all URLS used by the Riak raw HTTP - %% interface. See riak_web.erl and raw_http_resource.erl for - %% details. - %{raw_name, "riak"}, - - %% Enable active anti-entropy subsystem + optional debug messages: - %% {anti_entropy, {on|off, []}}, - %% {anti_entropy, {on|off, [debug]}}, - {anti_entropy, {on, []}}, - - %% Restrict how fast AAE can build hash trees. Building the tree - %% for a given partition requires a full scan over that partition's - %% data. Once built, trees stay built until they are expired. - %% Config is of the form: - %% {num-builds, per-timespan-in-milliseconds} - %% Default is 1 build per hour. - {anti_entropy_build_limit, {1, 3600000}}, - - %% Determine how often hash trees are expired after being built. - %% Periodically expiring a hash tree ensures the on-disk hash tree - %% data stays consistent with the actual k/v backend data. It also - %% helps Riak identify silent disk failures and bit rot. However, - %% expiration is not needed for normal AAE operation and should be - %% infrequent for performance reasons. The time is specified in - %% milliseconds. The default is 1 week. - {anti_entropy_expire, 604800000}, - - %% Limit how many AAE exchanges/builds can happen concurrently. - {anti_entropy_concurrency, 2}, - - %% The tick determines how often the AAE manager looks for work - %% to do (building/expiring trees, triggering exchanges, etc). - %% The default is every 15 seconds. Lowering this value will - %% speedup the rate that all replicas are synced across the cluster. - %% Increasing the value is not recommended. - {anti_entropy_tick, 15000}, - - %% The directory where AAE hash trees are stored. - {anti_entropy_data_dir, "/var/lib/riak/anti_entropy"}, - - %% The LevelDB options used by AAE to generate the LevelDB-backed - %% on-disk hashtrees. - {anti_entropy_leveldb_opts, [{write_buffer_size, 4194304}, - {max_open_files, 20}]}, - - %% mapred_name is URL used to submit map/reduce requests to Riak. - {mapred_name, "mapred"}, - - %% mapred_2i_pipe indicates whether secondary-index - %% MapReduce inputs are queued in parallel via their own - %% pipe ('true'), or serially via a helper process - %% ('false' or undefined). Set to 'false' or leave - %% undefined during a rolling upgrade from 1.0. - {mapred_2i_pipe, true}, - - %% Each of the following entries control how many Javascript - %% virtual machines are available for executing map, reduce, - %% pre- and post-commit hook functions. - {map_js_vm_count, 8 }, - {reduce_js_vm_count, 6 }, - {hook_js_vm_count, 2 }, - - %% js_max_vm_mem is the maximum amount of memory, in megabytes, - %% allocated to the Javascript VMs. If unset, the default is - %% 8MB. - {js_max_vm_mem, 8}, - - %% js_thread_stack is the maximum amount of thread stack, in megabyes, - %% allocate to the Javascript VMs. If unset, the default is 16MB. - %% NOTE: This is not the same as the C thread stack. - {js_thread_stack, 16}, - - %% js_source_dir should point to a directory containing Javascript - %% source files which will be loaded by Riak when it initializes - %% Javascript VMs. - {js_source_dir, "/tmp/js_source"}, - - %% http_url_encoding determines how Riak treats URL encoded - %% buckets, keys, and links over the REST API. When set to 'on' - %% Riak always decodes encoded values sent as URLs and Headers. - %% Otherwise, Riak defaults to compatibility mode where links - %% are decoded, but buckets and keys are not. The compatibility - %% mode will be removed in a future release. - {http_url_encoding, on}, - - %% Switch to vnode-based vclocks rather than client ids. This - %% significantly reduces the number of vclock entries. - %% Only set true if *all* nodes in the cluster are upgraded to 1.0 - {vnode_vclocks, true}, - - %% This option toggles compatibility of keylisting with 1.0 - %% and earlier versions. Once a rolling upgrade to a version - %% > 1.0 is completed for a cluster, this should be set to - %% true for better control of memory usage during key listing - %% operations - {listkeys_backpressure, true}, - - %% This option specifies how many of each type of fsm may exist - %% concurrently. This is for overload protection and is a new - %% mechanism that obsoletes 1.3's health checks. Note that this number - %% represents two potential processes, so +P in vm.args should be at - %% least 3X the fsm_limit. - {fsm_limit, 50000}, - - %% Uncomment to make non-paginated results be sorted the - %% same way paginated results are: by term, then key. - %% In Riak 1.4.* before 1.4.4, all results were sorted this way - %% by default, which can adversely affect performance in some cases. - %% Setting this to true emulates that behavior. - %% {secondary_index_sort_default, true}, - - %% object_format controls which binary representation of a riak_object - %% is stored on disk. - %% Current options are: v0, v1. - %% v0: Original erlang:term_to_binary format. Higher space overhead. - %% v1: New format for more compact storage of small values. - {object_format, v1} - ]}, - - %% Riak Search Config - {riak_search, [ - %% To enable Search functionality set this 'true'. - {enabled, true} - ]}, - - %% Merge Index Config - {merge_index, [ - %% The root dir to store search merge_index data - {data_root, "/var/lib/riak/merge_index"}, - - %% Size, in bytes, of the in-memory buffer. When this - %% threshold has been reached the data is transformed - %% into a segment file which resides on disk. - {buffer_rollover_size, 1048576}, - - %% Overtime the segment files need to be compacted. - %% This is the maximum number of segments that will be - %% compacted at once. A lower value will lead to - %% quicker but more frequent compactions. - {max_compact_segments, 20} - ]}, - - %% Bitcask Config - {bitcask, [ - %% Configure how Bitcask writes data to disk. - %% erlang: Erlang's built-in file API - %% nif: Direct calls to the POSIX C API - %% - %% The NIF mode provides higher throughput for certain - %% workloads, but has the potential to negatively impact - %% the Erlang VM, leading to higher worst-case latencies - %% and possible throughput collapse. - {io_mode, erlang}, - - {data_root, "/var/lib/riak/bitcask"} - ]}, - - %% eLevelDB Config - {eleveldb, [ - {data_root, "/var/lib/riak/leveldb"} - ]}, - - %% Lager Config - {lager, [ - %% What handlers to install with what arguments - %% The defaults for the logfiles are to rotate the files when - %% they reach 10Mb or at midnight, whichever comes first, and keep - %% the last 5 rotations. See the lager README for a description of - %% the time rotation format: - %% https://github.com/basho/lager/blob/master/README.org - %% - %% If you wish to disable rotation, you can either set the size to 0 - %% and the rotation time to "", or instead specify a 2-tuple that only - %% consists of {Logfile, Level}. - %% - %% If you wish to have riak log messages to syslog, you can use a handler - %% like this: - %% {lager_syslog_backend, ["riak", daemon, info]}, - %% - {handlers, [ - {lager_file_backend, [ - {"/var/log/riak/error.log", error, 10485760, "$D0", 5}, - {"/var/log/riak/console.log", info, 10485760, "$D0", 5} - ]} - ] }, - - %% Whether to write a crash log, and where. - %% Commented/omitted/undefined means no crash logger. - {crash_log, "/var/log/riak/crash.log"}, - - %% Maximum size in bytes of events in the crash log - defaults to 65536 - {crash_log_msg_size, 65536}, - - %% Maximum size of the crash log in bytes, before its rotated, set - %% to 0 to disable rotation - default is 0 - {crash_log_size, 10485760}, - - %% What time to rotate the crash log - default is no time - %% rotation. See the lager README for a description of this format: - %% https://github.com/basho/lager/blob/master/README.org - {crash_log_date, "$D0"}, - - %% Number of rotated crash logs to keep, 0 means keep only the - %% current one - default is 0 - {crash_log_count, 5}, - - %% Whether to redirect error_logger messages into lager - defaults to true - {error_logger_redirect, true}, - - %% maximum number of error_logger messages to handle in a second - %% lager 2.0.0 shipped with a limit of 50, which is a little low for riak's startup - {error_logger_hwm, 100} - ]}, - - %% riak_sysmon config - {riak_sysmon, [ - %% To disable forwarding events of a particular type, use a - %% limit of 0. - {process_limit, 30}, - {port_limit, 2}, - - %% Finding reasonable limits for a given workload is a matter - %% of experimentation. - %% NOTE: Enabling the 'gc_ms_limit' monitor (by setting non-zero) - %% can cause performance problems on multi-CPU systems. - {gc_ms_limit, 0}, - {heap_word_limit, 40111000}, - - %% Configure the following items to 'false' to disable logging - %% of that event type. - {busy_port, true}, - {busy_dist_port, true} - ]}, - - %% SASL config - {sasl, [ - {sasl_error_logger, false} - ]}, - - %% riak_control config - {riak_control, [ - %% Set to false to disable the admin panel. - {enabled, false}, - - %% Authentication style used for access to the admin - %% panel. Valid styles are 'userlist' . - {auth, userlist}, - - %% If auth is set to 'userlist' then this is the - %% list of usernames and passwords for access to the - %% admin panel. - {userlist, [{"user", "pass"} - ]}, - - %% The admin panel is broken up into multiple - %% components, each of which is enabled or disabled - %% by one of these settings. - {admin, true} - ]} -]. diff --git a/basho.apt.key b/basho.apt.key deleted file mode 100644 index 59477ba..0000000 --- a/basho.apt.key +++ /dev/null @@ -1,64 +0,0 @@ ------BEGIN PGP PUBLIC KEY BLOCK----- -Version: GnuPG v1.4.11 (GNU/Linux) - -mQINBFLUbogBEADceEoxBDoE6QM5xV/13qiELbFIkQgy/eEi3UesXmJblFdU7wcD -LOW3NuOIx/dgbZljeMEerj6N1cR7r7X5sVoFVEZiK4RLkC3Cpdns0d90ud2f3VyK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pVBN+idzwPefQksSKH4lBDvVr/9j+V9mmrOx7QmQ5LCc/ -1on+L0dqo6suoajADhKy+lDQbzs2mVb4CLpPKncDup/9iJbjiR17DDFMwgyCoy5O -HJICQ5lckNNgkHTS6Xiogkt28YfK4P3S0GaZgIrhKQ7AmO3O+hB12Zr+olpeyhGB -OpBD80URntdEcenvfnXBY/BsuAVbTGXiBzrlBEyQxg656jUeqAdXg+nzCvP0yJlB -UOjEcwyhK/U2nw9nGyaR3u0a9r24LgijGpdGabIeJm6O9vuuqFHHGI72pWUEs355 -lt8q1pAoJUv8NehQmlaR0h5wcwhEtwM6fiSIUTnuJnyHT053GjsUD7ef5fY1KEFm -aZeW04kRtFDOPinz0faE8hvsxzsVgkKye1c2vkXKdOXvA3x+pZzlTHtcgMOhjKQA -sA== -=H60S ------END PGP PUBLIC KEY BLOCK----- diff --git a/circle.yml b/circle.yml deleted file mode 100644 index d2b3f0f..0000000 --- a/circle.yml +++ /dev/null @@ -1,10 +0,0 @@ -machine: - services: - - docker -dependencies: - override: - - docker build -t riak . -test: - override: - - docker run -d -p 8098:8098 -e RIAK_PASS="mypass" riak; sleep 30 - - wget --no-check-certificate -qO- https://riakuser:mypass@localhost:8098/ping diff --git a/create_certificate.sh b/create_certificate.sh deleted file mode 100755 index 48c64bd..0000000 --- a/create_certificate.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -# Generate new autosigned certificate by our own CA -echo "=> Generating certificate" -openssl genrsa -out /etc/riak/rootCA.key 2048 && openssl req -subj '/CN=0.0.0.0/O=Riak/C=US' -x509 -new -nodes -key /etc/riak/rootCA.key -days 365 -out /etc/riak/rootCA.crt -openssl genrsa -out /etc/riak/host.key 2048 && openssl req -subj '/CN=0.0.0.0/O=Riak/C=US' -new -key /etc/riak/host.key -out /etc/riak/host.csr && openssl x509 -req -in /etc/riak/host.csr -CA /etc/riak/rootCA.crt -CAkey /etc/riak/rootCA.key -CAcreateserial -out /etc/riak/host.crt -days 365 - -echo "=> Done!" -touch /.certificate_created diff --git a/run.sh b/run.sh deleted file mode 100755 index ceb9ff1..0000000 --- a/run.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -set -m - -# Generate certificate -if [ ! -f /.certificate_created ]; then - /create_certificate.sh -fi - -# Start riak -supervisord -n & - -# Generate riak user -if [ ! -f /.riak_password_set ]; then - /set_riak_password.sh -fi - -# Print riak logs to stdout -touch /var/log/riak/{console,crash,error}.log -tail -F /var/log/riak/*.log & - -fg %1 diff --git a/set_riak_password.sh b/set_riak_password.sh deleted file mode 100755 index 23ffe4f..0000000 --- a/set_riak_password.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -if [ -f /.riak_password_set ]; then - echo "riak password already set!" - exit 0 -fi - -# Generate random password for riakuser or use ENV password -PASS=${RIAK_PASS:-$(pwgen -s 12 1)} -_word=$( [ ${RIAK_PASS} ] && echo "preset" || echo "random" ) -echo "=> Creating riak user with ${_word} password" - -# Enable security for use authentication user and create user with random password -riak-admin security enable -riak-admin security add-user riakuser password=$PASS -riak-admin security grant riak_core.set_bucket,riak_kv.get,riak_kv.put,riak_kv.delete,riak_kv.index,riak_kv.list_keys,riak_kv.list_buckets on any to riakuser -riak-admin security add-source all 0.0.0.0/0 password - -echo "=> Done!" -touch /.riak_password_set - -echo "========================================================================" -echo "You can now use riak Server using:" -echo "" -echo " wget --no-check-certificate -qO- https://riakuser:$PASS@host:port/ping" -echo "" -echo "Or use protocol buffer with same user/password." -echo "" -echo "Please remember to change the above password as soon as possible!" -echo "You must use https protocol. http is disable for security reasons" -echo "========================================================================" diff --git a/supervisord-riak.conf b/supervisord-riak.conf deleted file mode 100644 index 46b9aef..0000000 --- a/supervisord-riak.conf +++ /dev/null @@ -1,8 +0,0 @@ -[supervisord] -nodaemon=true - -[program:riak] -command=bash -c "/usr/sbin/riak console" -numprocs=1 -autostart=true -autorestart=true