Hi everyone, I’ve been trying to run pants in Gitl...
# general
b
Hi everyone, I’ve been trying to run pants in Gitlab CI where I wanted to upload built docker images, I ran into problem when doing
pants publish
as it requires docker installed, so I went to use the official
dind
which is built on top of alpine linux which is not supported as I found out. Do you have any experience building + uploading docker images to registry from within a pipeline? What apporach would be best suitable? I was looking into options as making a dind image based on ubuntu/debian, building the pants on top of the official dind alpine but they seem to be not very practical as it imposes more maintenance.
f
from my understanding the
dind
being based on alpine shouldn't really affect your own image ...
b
The built outcome of course is not affected, however the part where pants uses docker to build it is problematic here as it is not out of the box installable inside the
dind
image to use it to build the images. I am not sure if you mean something else though. I am basically looking if there is any simpler way of handling the docker image builds as of now, since this has solutions (one of those I mentioned, but I would like to avoid those if there is better way)
f
I most probably too fresh to pants - so no idea how pants is using docker ... maybe it's worth a try to give it one more layer and run pants inside of another docker container which isn't alpine based. you'd have to mount your volumes then etc. but might be worth a try
g
We don't use Pants docker support, but in our Bazel repos we take the socket-mount approach to make it work when we have to use Docker. And where we use neither we use buildah/podman.
👀 1
Not sure if symlinking
docker
to
buildah
or
podman
would work for Pants, that's a trick that sometimes works as well and makes things easier in some situations.
👀 1