Skip to content

iMax-pp/intools-engine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%