Commit graph

14 commits

Author SHA1 Message Date
b308c3dc2e
move to codeberg 2026-06-06 13:00:59 -05:00
1be6392e24
remove TOWEROPS_API_URL from public docs and fix outdated references
remove API URL from docker-compose example, config table, and
troubleshooting. update language references from Rust to Go.
2026-03-17 16:12:56 -05:00
9db47e22d1
Remove CAP_NET_RAW requirement from documentation
Since we now use command-line ping (setuid root) instead of surge-ping
library, the agent no longer requires CAP_NET_RAW capability.

Reverted documentation changes from previous commit that added the
capability requirement.
2026-02-10 13:27:08 -06:00
4da510dff1
Add NET_RAW capability requirement for ICMP ping
Agent was crashing with segmentation fault (exit code 139) when
attempting ICMP ping health checks. The surge-ping library requires
CAP_NET_RAW capability to create raw sockets for ICMP.

Changes:
- Added cap_add: NET_RAW to docker-compose.example.yml
- Updated README docker-compose example
- Added troubleshooting section for exit code 139 crashes

Without this capability, the agent crashes immediately after
successful ping execution when the surge-ping library attempts
to clean up raw socket resources.
2026-02-10 13:22:37 -06:00
a4745f55bf
readme update 2026-02-01 08:17:00 -06:00
4254f47ea5
github release fix 2026-01-31 17:01:09 -06:00
b8aecf0a55
more tests 2026-01-31 15:26:36 -06:00
6e57918386
cleanup and readme update 2026-01-31 14:56:36 -06:00
824f4388eb
Add automatic self-update capability to agent
The agent now checks for updates every hour and automatically updates
itself when a new version is available on Docker Hub.

Features:
- Periodic update checks (hourly via scheduler)
- Automatic Docker image pull when update available
- Graceful exit and restart with new version
- Non-blocking, runs in background task
- Requires Docker socket mount for self-update

Changes:
- Add UpdateInfo struct and get_update_info() function
- Add perform_self_update() to pull new image and restart
- Add update check ticker to scheduler (hourly)
- Include docker-cli in Dockerfile runtime stage
- Update docker-compose.example.yml with socket mount
- Update README and CLAUDE.md with auto-update docs

The agent will log update status:
- "Already running latest version" - no action
- "Performing self-update: X -> Y" - pulling new image
- "Exiting to allow restart with new version" - restarting

Requires:
- Docker socket mounted: /var/run/docker.sock:/var/run/docker.sock
- restart: unless-stopped in docker-compose (to restart after exit)
2026-01-14 16:50:32 -06:00
953d044c9b
change build dest 2026-01-09 17:02:03 -06:00
fd1b02a6ea
update ci rust version 2026-01-09 13:36:10 -06:00
125b0f427e
update ci rust version 2026-01-09 13:34:43 -06:00
5263175182
build docker image in ci 2026-01-09 13:32:11 -06:00
0f8cfc34e7
init 2026-01-09 13:22:15 -06:00