jenkinsci / docker-plugin

Jenkins cloud plugin that uses Docker
https://plugins.jenkins.io/docker-plugin/
MIT License
490 stars 318 forks source link

Add variable value to be used for volume creation #929

Open FROSADO opened 1 year ago

FROSADO commented 1 year ago

What feature do you want to see added?

I want to add a cache volume to improve performance at some internal operations that works better with an attached volume. For example, if we have some I/O operations we want create a volume like:

type=volume, source=myvol-${docker-agent-count}, target=/internal

or any other identity that allow generate a volume for those docker agents and reuse only for them (not shared). My plan is to use for docker-in-docker (/var/lib/docker) or apt cache folder (/var/cache/apt)

If the plugin allows 10 parallel docker agents to run ansible agents, it will generate 10 volumes:

Upstream changes

No response

raagav-ibs commented 1 year ago

Any updates?

breuniga commented 5 months ago

I‘d like to see this feature too. Are there any plans/ideas to implement this? Are there any alternative solutions?

krisstern commented 5 months ago

We do not currently have the bandwidth add this feature, but any PR for it would be welcome