GitXplorerGitXplorer
s

dokku-rethinkdb-plugin

public
33 stars
11 forks
5 issues

Commits

List of commits on branch master.
Unverified
12b8f8c8e40d8063e11b3d4648e0f70a9194aa9b

Update image to rethinkdb 1.16.3

sstuartpb committed 10 years ago
Unverified
a28d6ad13afbad4c8cbcf886aa895811553d21e8

Fix rethinkdb:start for official image

sstuartpb committed 10 years ago
Unverified
9d55c62e04bb38c80b38b618729c56fd96301751

Don't RUNAS_USER inside container

sstuartpb committed 10 years ago
Unverified
d916b2a64aac111fbc519d1ad4592e7ccce99f29

Use official RethinkDB image

sstuartpb committed 10 years ago
Unverified
23a14eeb0df12630736da079b1fd76f896d47b78

cat existing docker-args before outputting ours

sstuartpb committed 10 years ago
Unverified
5c6d4c82c02ee5a645d5b9b819e937b8cb3af186

Convert deprecated -link syntax to --link

sstuartpb committed 10 years ago

README

The README file for this repository.

dokku-rethinkdb-plugin

This project provides a plugin for Dokku to create linked RethinkDB containers for apps.

Features

  • No dependencies (other than a recent development version of Dokku.) Wow!
  • Deletes cleanly with apps. Oh my!
  • Survives reboots, cleanups, and redeploys. Holy cow!
  • Can add before or after pushing an app. Am I dreaming?
  • Allows access to admin ports through binding to host interfaces. Is this real life?

Vince McMahon reacts to dokku-rethinkdb-plugin

dokku-rethinkdb-plugin: The Gary Strydom of Dokku datastore plugins.

Installation

cd /var/lib/dokku/plugins
git clone https://github.com/stuartpb/dokku-rethinkdb-plugin rethinkdb
dokku plugins-install

Simple usage

Create a new container for a named app:

$ dokku rethinkdb:create foo # or "ssh dokku@server -t" client-side

-----> Creating new container: rethinkdb/foo

Deploy an app to that name (client side):

$ git remote add dokku dokku@server:foo
$ git push dokku master
Counting objects: 155, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (70/70), done.
Writing objects: 100% (155/155), 22.44 KiB | 0 bytes/s, done.
Total 155 (delta 92), reused 131 (delta 80)
remote: -----> Building foo ...
remote:        Ruby/Rack app detected
remote: -----> Using Ruby version: ruby-2.0.0

... blah blah blah ...

remote: -----> Deploying foo ...
remote: -----> Starting linked container rethinkdb_foo ...
remote:        Container ID: 99797e35d7b9
remote:        Container IP: 172.16.0.104
remote: -----> Deploy complete!
remote: -----> Cleaning up ...
remote: -----> Cleanup complete!
remote: =====> Application deployed:
remote:        http://foo.server

These steps can be done in either order - if an app has been pushed to the server, "rethinkdb:create" will re-deploy it with the RethinkDB container linked.

The container will be exposed in the config/app environment as RETHINKDB_HOST and RETHINKDB_PORT, as well as RDB_HOST and RDB_PORT (the names used by the RethinkDB example apps).

Advanced usage

All of these commands are detailed when running dokku help.

Bind a port on the host to the Web Admin UI for a RethinkDB container:

dokku rethinkdb:bind-webui <app> [host port]

Bind a port on the host to the cluster port (as used by the RethinkDB CLI) for a RethinkDB container:

dokku rethinkdb:bind-cluster <app> [host port]

Release a RethinkDB container's bindings to host ports (does not affect links to the associated app):

dokku rethinkdb:unbind <app>

Unlink and delete the RethinkDB container and data for an app:

dokku rethinkdb:delete <app>

Read app RethinkDB container logs:

dokku rethinkdb:logs <app>

Get RethinkDB container ID, IP, and any bound ports:

dokku rethinkdb:info <app>

(Re)start a RethinkDB container independently of a running app:

dokku rethinkdb:start <app>

Stop an app's running RethinkDB container:

dokku rethinkdb:stop <app>

(Re)set environment variables to direct to a linked RethinkDB container:

dokku rethinkdb:link <app>