go-runner

command module
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 10 Imported by: 0

README

go-runner

A naive imitation of app-runner for Go app (example).

apis

  • GET /api/health return health of go-runner

  • POST /api/apps register and deploy a go-app

    gitUrl - git url to the app being deployed

    app - app name

  • PUT /api/:app operate a go-app

    action - deploy or restart

  • GET /api/:app/stdout stream app stdout

  • GET /api/:app/stderr stream app stderr

  • ANY /:app/* access go-apps

TODO

  • basic app CRUD
  • unixsocket support in the back
  • endpoint for streaming stdout/stderr of an app
  • a cli client gorun
    • init
    • register
    • push
    • delete
    • status
    • curl
  • https support in front
  • tcp socket support in the back
  • try using Namespace to isolate apps (ref: Linux Namespace)
    • PID namespace
    • filesystem
  • try using cgroup to manage apps resources (ref: cgroup)
    • cpu
    • memory

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
internal
web

Jump to

Keyboard shortcuts

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