Deploy apps directly to docker.
Inspired from Kelsey Hightower's presentation at dotGo 2016 of Kargo library, I wanted also be able to deploy applications directly to Docker Swarm
Check out the example app in example
. It's as simple as:
package main
import (
"fmt"
"github.com/brimstone/dargo"
)
func main() {
dargo.DeployAndExit(dargo.DeployOptions{
Tags: []string{"hello-dargo"},
})
fmt.Println("Hello world!")
}