An open API service indexing awesome lists of open source software.

https://github.com/gwuah/fly-notification-agent

a tiny agent that runs in your vm
https://github.com/gwuah/fly-notification-agent

Last synced: 2 months ago
JSON representation

a tiny agent that runs in your vm

Awesome Lists containing this project

README

        

# fly-notification-agent
Notify webhooks based on vm state

# supported states
- machine_started
- machine_stopped
- oom

# payload structure
- type
- data
- machine_id
- app_name
- state
- at

# usage
drop this line in your dockerfile
```
curl -L https://fly-notification-agent.fly.dev/install.sh | sh
```

add this to your machine config
```
{
"name": "events",
"entrypoint": ["/bin/bash", "-c"],
"cmd": ["~/.fly/fly-notification-agent", "--webhook", "]
}
```

# process (for me so i don't forget because i can't do anything right)
it's a bit weird but
- make changes
- GOOS=linux GOARCH=amd64 go build main.go
- git tag v0.0.4
- update public/install.sh to point to new version
- git push origin --tags
- fly deploy