https://pantsbuild.org/ logo
#general
Title
# general
f

flat-queen-95161

06/28/2022, 5:25 AM
I want to run pants and build my docker images during a CICD run on Drone.io. But I need a docker-in-docker image. The default dind image is based on Alpine which pants does not support. Can anyone suggest another dind image from DockerHub that will work for pants?
h

happy-kitchen-89482

06/28/2022, 2:41 PM
@curved-television-6568, you're the expert... :)
c

curved-television-6568

06/28/2022, 2:44 PM
There’s previous thread on this topic here: https://pantsbuild.slack.com/archives/C046T6T9U/p1654725036264899 Hopefully that’ll be of some help here as well.
c

cool-printer-74432

06/29/2022, 3:12 AM
I haven't tried this myself, but maybe you could run the official dind image as a Drone pipeline service (https://docs.drone.io/pipeline/docker/syntax/services/) and connect to it from your pipeline step using the
DOCKER_HOST
env variable? You'd still need to use an image that has the
docker
command installed, but you wouldn't need to run the daemon in that image.
If that doesn't work, you might consider building your own image for this. You can find the dind Dockerfile here, along with the Dockerfile for its "parent" image. It doesn't look like it would be much work to port this over to another base image.
🙏 1
f

flat-queen-95161

06/29/2022, 5:00 AM
Thanks everyone. We got it working by building our own debian based dind image for drone.
💯 1
👍 1
5 Views