https://pantsbuild.org/ logo
b

bitter-ability-32190

04/17/2023, 4:51 PM
I'm starting to play with environments. I had it in my head that a
docker_environment
could be a
docker_image
target (or at least use a series of docker instructions), but looks like I'm mistaken?
e

enough-analyst-54434

04/17/2023, 4:55 PM
https://www.pantsbuild.org/docs/environments does not show that. It seems like it shipped non-DRY. It definitely shipped not fully polished so perhaps it just needs finishing.
b

bitter-ability-32190

04/17/2023, 4:56 PM
Yeah that's where I'm feeling I'm wrong.
Let me check our tests to see if it's just undocumented
e

enough-analyst-54434

04/17/2023, 4:56 PM
Yeah, reading code here sounds like the smart thing to do.
b

bitter-ability-32190

04/17/2023, 5:03 PM
I must've been hallucinating I don't see it anywhere
Oh it doesn't even work if you package it locally 😭
😢 1
And womp womp:
Copy code
Exception: Failed to make named cache(s) for local execution: "Failed to create parent directory for named cache in Docker container:\nstdout:\n\nstderr:\nmkdir: cannot create directory '/pants-named-caches/pex_root': Permission denied\n\n"
Not being able to work with these images locally and tweak is painful
w

witty-crayon-22786

04/17/2023, 5:48 PM
mm, i had forgotten about https://github.com/pantsbuild/pants/issues/17714 … yea, that’s a stabilization blocker.
And womp womp:
that’s a separate bug… the named cache directory inside the image is hardcoded now, but could be configurable.
2 Views