foremand

command module
v0.0.0-...-a023534 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: MIT Imports: 16 Imported by: 0

README

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>
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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