Skip to content

huazhihao/foremand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foremand

Build Status GoDoc

foremand = foreman + etcd

foremand architecture

Quick Examples

This short example assumes foremand, etcd and etcdctl are installed locally.

  1. Start a etcd cluster in dev mode:

    $ etcd
  2. Write data to the key in etcd:

    $ ETCDCTL_API=3 etcdctl put host1/app "python -m SimpleHTTPServer 8001"
    OK
  3. Register to etcd:

    $ foremand -endpoints=http://127.0.0.1:2379 -prefix=host1
    INFO[0000] Initialing foremand                           endpoints="[http://127.0.0.1:2379]" prefix=host1
    INFO[0000] Starting foremand
    INFO[0000] forking                                       app=host1/app shell="python -m SimpleHTTPServer 8001"
  4. Test app connectivity:

    $ curl http://127.0.0.1:8001
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html>
    <title>Directory listing for /</title>
    <body>
    <h2>Directory listing for /</h2>
    ...
    </body>
    </html>

About

Manage procfile-based applications with etcd

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published