JesterXIII
JesterXIII

Reputation: 139

DinD and AWS Fargate CI?

Regarding fargate - since it seems we can't run containers in privileged mode and also cannot mount /var/run/docker.sock, has anyone figured out a good solution for building/publishing docker images inside fargate tasks?

Upvotes: 8

Views: 2383

Answers (2)

Jonatan
Jonatan

Reputation: 730

I came upon this question after trying to run Jenkins builder slaves in Fargate. Previously they ran in ECS on EC2 instances with the docker.sock mounted.
I considered trying DinD but with Fargate currently having the maximum storage size of 10 GB I will abandon this idea for slaves. We would simply want to be able to cache more data before pruning or recycling the slave.

In my opinion storage size is also a factor when considering to build Docker containers in Fargate.

Upvotes: 1

Peter Johnson
Peter Johnson

Reputation: 2703

You probably want AWS Codebuild

Upvotes: 1

Related Questions