Commit Graph

9 Commits

Author SHA1 Message Date
Lumpiasty 01057e78b8 add RouterOS auto-update script
Scheduled script that recreates the container only when the published
:stable image digest actually changed — no wasteful re-pulls. Compares
the registry manifest digest (anonymous Gitea token + :deserialize for
the token JSON) against a stored digest; recreates + records on change.

Verified end-to-end on RouterOS 7.21.2:
- token URL omits &service= (& is RouterOS's AND operator and breaks url=)
- header digest parsed case-insensitively from the flat http-headers string
- container identified by name; mounts via mountlists (list=, not name=)
- stop/start waits retry the operation (remove/start) rather than polling
  a status string, which never matched and forced full timeouts
- no /container get ... status (status is a flag, not a gettable property)
- installed as a named /system/script (NOT /import, which only executes once)
2026-05-29 04:24:03 +02:00
Lumpiasty f7ddd164b3 drop cachenetmap feature, expand omission rationale
cachenetmap only persists the netmap to disk for cold-start-during-
control-outage; the in-memory map (the common case) is unaffected. Its
cost is a flash write on every netmap delta, which is frequent on active
tailnets — the opposite of this image's flash-conservation goal. Remove
it from the allowlist. Also expand the clientupdate/cachenetmap comments
to document why they're deliberately omitted, and fix the stale volume/
statedir comments that referenced the now-removed on-disk netmap cache.
2026-05-29 04:23:51 +02:00
Lumpiasty 082703a6b8 fix overlayfs layer duplication doubling extracted size
Creating the tailscale argv[0] symlinks with RUN in the final scratch
stage forced overlayfs to copy-up the whole /usr/local/bin directory,
duplicating the ~3 MB binary into a second layer. RouterOS extracts
overlay layers separately, so the on-disk rootfs measured ~7 MB instead
of ~3.4 MB. Assemble /usr/local/bin in the builder stage and bring it in
with a single COPY layer. Verified on RouterOS 7.21.2: du -sx / now ~3.4 MB.
2026-05-29 04:23:41 +02:00
Lumpiasty 864859a5a0 invalidate openbao token at the end of ci run
ci/woodpecker/push/release-tag Pipeline was successful
2026-05-29 01:07:06 +02:00
Lumpiasty 7bf9b2da4f add releases
ci/woodpecker/push/release-tag Pipeline was successful
ci/woodpecker/tag/release Pipeline was successful
v1.98.3-mt.1
2026-05-29 00:54:56 +02:00
Lumpiasty 5e6573bdd7 add pipeline status 2026-05-28 23:49:14 +02:00
Lumpiasty d5a32d13dd don't use floating tags
ci/woodpecker/cron/renovate Pipeline was successful
2026-05-28 23:46:17 +02:00
Lumpiasty dca233f9f2 add renovate cronjob
ci/woodpecker/cron/renovate Pipeline was canceled
2026-05-28 23:37:02 +02:00
Lumpiasty d912a450bf Initial commit 2026-05-28 23:03:21 +02:00