Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 992
JesterXIII Avatar asked Jan 22 '18 21:01

JesterXIII


People also ask

Can I use API gateway with fargate?

Our solution leverages the existing applications/APIs running in AWS Fargate behind a Private ALB inside a VPC and proposes an architecture to expose these APIs securely through HTTP APIs using Amazon API Gateway and AWS PrivateLink.

Can I SSH into fargate container?

I can confirm, yes you can SSH into a Fargate container by running sshd and properly configuring the security group.

What is the difference between fargate and ECS?

ECS with AWS Fargate Users create a cluster, add workloads to it and specify resource requirements (CPU and memory), and when ECS containers are deployed, Fargate will launch, run and manage pre-configured servers that meet container requirements.

What is the difference between ECS and EKS and fargate?

What are the key differences between EKS, ECS, and Fargate? EKS is a Kubernetes managed service, whereas ECS is a container orchestration service. ECS is a scalable container orchestration solution for running, stopping, and managing containers in a cluster.


2 Answers

You probably want AWS Codebuild

like image 97
Peter Johnson Avatar answered Oct 17 '22 03:10

Peter Johnson


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.

like image 1
Jonatan Avatar answered Oct 17 '22 01:10

Jonatan