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

bitter-ability-32190

07/20/2022, 5:58 PM
Something is amiss... With the following:
Copy code
docker_image(
    name="special-img",
    dependencies = [":large_files_dep"],
    repository = "special",
    image_tags=["thingy"],
    registries=["local"],
    instructions=[
        "FROM ubuntu:20.04",
        "COPY large_dir /usr/bin/app/place",
    ]
)
The directory in question is mutli-GB, 100k+ files. If I crack open the sandbox and build it, it takes seconds, but building it via Pants takes at least 5 minutes (I killed it at 300s)
🙈 1
Also the target is a single tar file I unzip in the sandbox with a plugin. So I doubt it has to do with pants trying to cache/hash things
Enabling build kit via
env_vars = ["DOCKER_BUILDKIT=1"]
fixed it
I assumed it used buildkit by default 🙈
c

curved-television-6568

07/20/2022, 8:18 PM
Ah, maybe should be an option for that..? Or just default to enabled unless provided otherwise..
b

bitter-ability-32190

07/20/2022, 8:19 PM
I dunno enough to know if thats kosher 🤷‍♂️
3 Views