The micro run command manages the lifecycle of a microservice. It fetches the source, builds a binary and executes it. It’s a simple tool which can be used for local development. If no arguments are specified micro run operates as a service which can manage other services.
Note: The default runtime (Go) requires the Go binary in PATH and GOPATH to be set.
micro run github.com/service/foo
micro run -s github.com/service/foo
micro run -k github.com/service/foo
Run service manager
Defer run to service manager
micro run -x github.com/service/foo
Run and restart on death
micro run -r github.com/service/foo
Run and update source on fetch
micro run -u github.com/service/foo
NAME: micro run - Run the micro runtime USAGE: micro run [command options] [arguments...] OPTIONS: -k Kill service -r Restart if dies. Default: false -u Update the source. Default: false -x Defer run to service. Default: false -s Get service status
- Accept args and env vars to service
- Add Service interface to go-run
- Support configurable runtimes beyond Go
- Rebuild with plugins
- Watch memory consumption and kill?
- Chroot the process?