mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-06 01:40:19 +00:00
refactor(sys-svc-container): auto-mirror DiD DNS test images via images dict
Switch SYS_SVC_DOCKER_DNS_TEST_BUSYBOX_IMAGE / _NODE_IMAGE to the
role-local `images:` pattern. Consumers now resolve through
`lookup('image', <service>, 'ref')`, which picks up mirrored GHCR
paths from `images_overrides` automatically. Drops the hardcoded
rate-limit workaround from inventories/dev.yml.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
51fc1d51ea
commit
cf1ff2c26a
3 files changed
+12
-9
No files matched your search
@@ -74,10 +74,6 @@ SIZE_PERCENT_CLEANUP_DISC_SPACE: 99 # Set high because in DiD Ci Environment in
|
||||
|
||||
WORKSTATION_USER: biber
|
||||
|
||||
## Overrides to avoid hitting rate limits
|
||||
SYS_SVC_DOCKER_DNS_TEST_BUSYBOX_IMAGE: "ghcr.io/kevinveenbirkenbach/mirror/busybox:1.36"
|
||||
SYS_SVC_DOCKER_DNS_TEST_NODE_IMAGE: "ghcr.io/kevinveenbirkenbach/mirror/node:20-alpine"
|
||||
|
||||
# Uncomment the following lines to speed up debugging:
|
||||
|
||||
# # Performance:
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# ------------------------------------------------------------
|
||||
# Docker-in-Docker DNS test images (override-able)
|
||||
# Docker-in-Docker DNS test images
|
||||
# Auto-mirrored via images discovery; consumers resolve through
|
||||
# lookup('image', <service>, 'ref').
|
||||
# ------------------------------------------------------------
|
||||
SYS_SVC_DOCKER_DNS_TEST_BUSYBOX_IMAGE: "busybox:1.36"
|
||||
SYS_SVC_DOCKER_DNS_TEST_NODE_IMAGE: "node:20-alpine"
|
||||
images:
|
||||
busybox:
|
||||
image: busybox
|
||||
version: "1.36"
|
||||
node:
|
||||
image: node
|
||||
version: "20-alpine"
|
||||
@@ -18,5 +18,5 @@
|
||||
- DOCKER_IN_CONTAINER | bool
|
||||
- MODE_DEBUG | bool
|
||||
environment:
|
||||
BUSYBOX_IMAGE: "{{ SYS_SVC_DOCKER_DNS_TEST_BUSYBOX_IMAGE }}"
|
||||
NODE_IMAGE: "{{ SYS_SVC_DOCKER_DNS_TEST_NODE_IMAGE }}"
|
||||
BUSYBOX_IMAGE: "{{ lookup('image', 'busybox', 'ref') }}"
|
||||
NODE_IMAGE: "{{ lookup('image', 'node', 'ref') }}"
|
||||
Reference in new issue
Block a user