Sign inSign up

lastbackend/riak

By lastbackend

•Updated almost 11 years ago

Image
0

377

lastbackend/riak repository overview

⁠lb-docker-riak

Base docker image to run a riak database server

⁠Usage

To create the image lastbackend/riak, execute the following command on the lastbackend-riak folder:

docker build -t lastbackend/riak .

⁠Running the riak server

Run the following command to start riak:

docker run -d -p 8087:8087 -p 8098:8098 lastbackend/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 <CONTAINER_ID>

You will see an output like the following:

--------------------------------------------------- RIAK ---------------------------------------------------
  +-++-+ wget --no-check-certificate -qO- https://admin:XkFLKynvnZdX4W9iV19zFO77@host:port/ping
  | LB | Or use protocol buffer with same user/password.
  +-++-+ Please remember to change the above password!
------------------------------------------------------------------------------------------------------------

In this case, XkFLKynvnZdX4W9iV19zFO77 is the password set. You can then connect to riak (using API):

wget --no-check-certificate -qO- https://admin:FVPNf35hXeXG@host:«port»/

⁠Setting a specific password

If you want to use a preset password instead of a randomly generated one, you can set the environment variable PASS to your specific password when running the container:

docker run -d -p 8087:8087 -p 8098:8098 -e USER="demo" -e PASS="mypass" lastbackend/riak

--------------------------------------------------- RIAK ---------------------------------------------------
  +-++-+ wget --no-check-certificate -qO- https://demo:mypass@«host»:«port»/ping
  | LB | Or use protocol buffer with same user/password.
  +-++-+ Please remember to change the above password!
------------------------------------------------------------------------------------------------------------

You can now test your new admin password:

wget --no-check-certificate -qO- https://demo:mypass@«host»:«port»/

In this case, mypass is the password assigned to the admin user.

If you want to disable password authentication, you can set PASS to **None**

⁠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.

by http://www.lastbackend.com⁠

Tag summary

Content type

Image

Digest

sha256:c6bf3d2af…

Size

135.3 MB

Last updated

almost 11 years ago

docker pull lastbackend/riak