Skip to content

Windows agent does not work on AWS Fargate #572

@kristofdho

Description

@kristofdho

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

  1. Set up the Amazon ECS plugin https://plugins.jenkins.io/amazon-ecs/
  2. Set up a Windows agent
  3. 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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions