intools-engine

command module
v0.0.0-...-3c6cd92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

README

intools-engine

wercker status

Development Dependencies

go get -u "github.com/codegangsta/cli"
go get -u "github.com/gin-gonic/gin"
go get -u "github.com/robfig/cron"
go get -u "github.com/samalba/dockerclient"
go get -u "gopkg.in/redis.v3"
go get -u github.com/gorilla/websocket

Environment Dependencies

  • Docker Host (version 1.5 min)
  • Redis Host (version 2.8 min)

Global Options

 --host, -H                   Docker host [$DOCKER_HOST]
 --cert, -C 			      Docker cert path [$DOCKER_CERT_PATH]
 --redis "localhost:6379"     Redis Host [$REDIS_HOST]
 --redis-password             Redis Password [$REDIS_PWD]
 --redis-db "0"               Redis Database [$REDIS_DB]
 --debug 			          Debug mode [$INTOOLS_DEBUG]

How to use

Command line
  • Run the server
 ./intools-engine daemin
  • Run a connector (it will register a group, a connector, its configuration, and run it once)
    • Argument to pass are : docker image name, timeout for container execution, and the container commandline
 ./intools-engine run <groupName> <connectorName> debian:jessie 5 echo '{"value":"test value"}'
REST Api
  • TODO

Tests

Install Ginkgo
 go get github.com/onsi/ginkgo/ginkgo
 go get github.com/onsi/gomega

This fetches ginkgo and installs the ginkgo executable under $GOPATH/bin – you’ll want that on your $PATH.

Run Tests suites
ginkgo groups

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
common
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL