joshuanianji / devcontainer-features

My custom devcontainer features
MIT License
2 stars 3 forks source link

gcloud-cli-persistence slowed my Codespaces to a crawl #47

Open dkordik opened 8 months ago

dkordik commented 8 months ago

I'm not sure why, but when I introduced this feature into my devcontainer.json features, I ended up running into issues getting my docker compose setup to fully start up. It'd hang at create, and wouldn't let me tear down either.

image

By removing the feeature and doing a rebuild, or spinning up new Codespaces, I was not seeing this issue. And upon re-adding this feature, I saw the issue again.

Sorry to not be able to provide much detail around why this might be happening, but figured it was worth capturing.

joshuanianji commented 8 months ago

Hey @dkordik, thanks for letting me know about the issue! Are you using the latest version of the feature (1.0.2)?

In that version we chmod -R the google cloud CLI folder inside a post create script which might be causing the slowdown. Maybe you can check how many files/how big the /dc/github-cli and ~/.config/gcloud folders are for a start.

You also mentioned that you're using a Docker compose setup - I've only used my features with a regular Docker container so I'll have to play around with this as well.