Skip to content

Cloudxtreme/rivet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rivet

API provider for Machine

Rivet provides a thin glue layer between provisioning and Docker Machine. This allows for any infrastructure provider to implement Rivet and be immediately available to Docker Machine for provisioning using the Rivet driver in Machine.

Rivet uses Pluginhook for provisioning. You can use any scripts (shell, python, binaries) for the backend implementation.

Usage

Rivet is a small Go application that provides a JSON API. The requests are sent to pluginhook which then runs the hooks in your custom plugins. You also need to build Docker Machine with the rivet driver. This enables Docker Machine to work with any Rivet endpoint and run the custom provisioning hooks.

Auth

By default there is no authentication. However, there is a simple token based authentication method available. Specify your auth token with the --auth-token flag and send it in the X-Auth-Token header when making requests.

Start Rivet API with Token:

rivet -p /path/to/plugins --auth-token mysecrettoken

Pass header in requests:

curl -H 'X-Auth-Token:mysecrettoken' http://myhost:8080

Example

See the Example plugin for the hook definitions.

Note: the example plugin does not work with Machine. It is simply an example on how to create your own custom plugins.

Demo

Rivet Demo

About

Docker Machine API Bridge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 89.3%
  • Shell 5.6%
  • Makefile 5.1%