Support Building Docker Images with Spacelift Workerpool on EC2

We would like the ability to build Docker images within Spacelift jobs using the Docker Terraform provider while running on the EC2-based worker pool module. Currently, this is not possible due to the lack of Docker daemon access within the job containers.

Workaround
-
Problem
The Spacelift worker EC2 instances spun up by the worker pool autoscaler do have the Docker daemon running. However, Spacelift jobs execute within the runner-terraform container that does not have Docker installed or access to the host's Docker socket. As a workaround, we considered providing a custom Docker image for the runner via the runner_image Stack setting, but Spacelift does not allow modifying how the container is started. Docker-in-Docker (dind) requires running the container in --privileged mode, which is not seem to be supported for Spacelift job containers.

Please authenticate to join the conversation.

Upvoters
Status

❌ Rejected

Board

πŸ’‘ Feature Requests

Tags

Workers

Date

About 1 year ago

Subscribe to post

Get notified by email when there are changes.