vagga icon indicating copy to clipboard operation
vagga copied to clipboard

Global image-cache-url for all containers

Open roman901 opened this issue 7 years ago • 2 comments

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?

roman901 avatar Oct 28 '17 11:10 roman901

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.

tailhook avatar Oct 30 '17 05:10 tailhook

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!

roman901 avatar Oct 30 '17 06:10 roman901