Skip to content
This repository has been archived by the owner on Oct 3, 2018. It is now read-only.

jakebailey/revel-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

revel-docker

Docker integration for Revel

Usage

Add the docker.endpoint configuration option to app.conf. For example, the docker socket on the local machine:

docker.endpoint = unix:///var/run/docker.sock

Then, ask revel to init the docker client on app start:

revel.OnAppStart(reveldocker.Init)

Embed into your controller:

type App struct {
	*revel.Controller
	reveldocker.DockerController
}

And add the intercept:

revel.InterceptMethod((*reveldocker.DockerController).Before, revel.BEFORE)

About

Docker integration for Revel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages