-
-
Notifications
You must be signed in to change notification settings - Fork 245
Description
Jenkins and plugins versions report
N/A
What Operating System are you using (both controller, and any agents involved in the problem)?
Controller: Linux
Agent: Windows
Reproduction steps
- Set up the Amazon ECS plugin https://plugins.jenkins.io/amazon-ecs/
- Set up a Windows agent
- Launch Windows agent
Expected Results
Windows Agent starts up
Actual Results
ECS Fargate error when launching the taks: CannotCreateVolumeError: unsupported: Dockerfile contains VOLUME instruction
Anything else?
Related issue on the plugin itself: jenkinsci/amazon-ecs-plugin#334
But the root cause is in this repo, as ECS Fargate does not support VOLUME
instructions in the image, on Windows.
So the quick and easy fix is to remove these 2 lines:
docker-agent/windows/windowsservercore/Dockerfile
Lines 98 to 99 in 798ce64
VOLUME "${AGENT_ROOT}"/.jenkins | |
VOLUME "${AGENT_WORKDIR}" |
However I suspect simply removing them will not an option. I however have no idea what a satisfactory solution would be.
Are you interested in contributing a fix?
The fix I can contribute is to remove the 2 aforementioned lines.
For anything else I'll need some pointers.