vagga
vagga copied to clipboard
Global image-cache-url for all containers
Now I must write image-cache-url: https://dl.uwtech.org/vagga/project/${container_name}.${short_hash}.tar.xz
for each container which I want to search in cache. What if make global setting like this (image-cache-url
) which will be used in cache module?
Hi,
We usually rely on &anchors
and *aliases
to set the value. The reason why you need to specify it for each container is that we usually have dev containers which we cache, and deployment containers which are useless to cache. The idea is that using an alias is the same as using cache: true
or similar setting.
So I think that global setting might introduce wrong pattern.
Another thing is that we want to introduce more efficient upload and more automated tracking of cached images using ciruela, and I'm inclined to avoid changes to this mechanism in the meantime.
I'm not think that caching production containers are useless. I mostly cache parent containers (like: php-dev and php-prod depends on php container, php container is cached). Okay, I'll wait for ciruela, thanks!