Hey everyone! How's it going? I'm trying to set up...
# general
c
Hey everyone! How's it going? I'm trying to set up a simple local devcontainer for a Pants-based project and I'm having some issues related to I/O performance inside this container I'm creating. For now, I have a simple
Dockerfile
that installs Pants and does some basic stuff, which my
.devcontainer.json
file points to. It seems that running
./pants generate-lockfiles --resolve=some_resolve
inside my devcontainer takes at least 3-5 times the amount of time it would take if I run it in my host machine. Is this expected in any way? Is there something I could do to make this work a little better? (Sorry for the kinda open question. I'll gladly provide more details if needed.)
s
Any chance you're using a Mac with an ARM chip and emulating a x86 container?
c
Not right now. I would probably want that in the future, tho.
I'm currently using a Mac M3 and this is my target platform.
h
That is surprising particularly since
generate-lockfiles
is typically network bound, so I wouldn't expect containerization to have that much impact. If you re-run
generate-lockfiles
twice in the same container (with download caches populated) how does that compare vs natively?