serversideup / spin

🚀 Replicate your production environment locally using Docker. Just run "spin up". It's really that easy.
https://serversideup.net/open-source/spin/
GNU General Public License v3.0
1.21k stars 43 forks source link

Improve "spin prune" and optimize SSH experience #121

Closed jaydrogers closed 1 week ago

jaydrogers commented 2 weeks ago

What this PR does

This PR will address the following issues:

spin prune is not clearing registry or Ansible collections cache

We found that some cache files were being removed, but not everything. This PR ensures:

The local registry is no longer running as root

When users were running spin deploy, it was starting the registry as the default root user within the container. We've now added the --user flag to set the registry to to run as the current running user id and group id. This improves experiences for running everything as an unprivileged user.

Add support for SSH_AUTH_SOCK on Linux

We added the ability for the SSH Auth Socket to be set and work with Linux and WSL2 hosts.

Next steps

Before merging, I need to do the following: