Skip to content

Foreman implementation, a manager for Procfile-based applications.

Notifications You must be signed in to change notification settings

Zaher1307/foreman

Repository files navigation

Foreman

It is a foreman implementation in GO.

Description

Foreman is a manager for Procfile-based applications. Its aim is to abstract away the details of the Procfile format, and allow you to run your services directly.

Features

  • Run procfile-backed apps.
  • Able to run with dependency resolution.

Procfile

Procfile is simply key: value format like:

service_ping:
  cmd: ping -c 20 google.com 
  checks:
    cmd: ps aux | grep google
  deps: 
      - service_redis

service_sleep:
  cmd: sleep infinity
  checks:
    cmd: sleep 1
  deps: 
      - service_ping

service_redis:
  cmd: redis-server --port 6010
  run_once: true
  checks:
    cmd: redis-cli -p 6010 ping

Here we defined two services app and redis with check commands and dependency matrix

How to use

First: modify the procfile with processes or services you want to run.

second: simply run with command:

go run *.go

About

Foreman implementation, a manager for Procfile-based applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published