Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Private Dependencies #26

Open
XedinUnknown opened this issue Dec 16, 2022 · 0 comments
Open

Install Private Dependencies #26

XedinUnknown opened this issue Dec 16, 2022 · 0 comments

Comments

@XedinUnknown
Copy link
Member

The Problem

Sometimes, and in the commercial WP plugin world pretty often, a plugin may depend on code that comes from a private repository. Or maybe you have 2FA and SSH set up in your Github account, which now tracks usage quotas. In these cases, SSH will need to use your key in order to authenticate with the repo server. These are not available in the Docker image, and thus no installation of said dependencies is possible.

Solution

Use runtime SSH agent forwarding. It works very well and keeps the container clean of keys. It works by mounting the host's SSH agent socket into the container, and forcing the container to use that socket. Note that the most compatible path to the socket, and thus a good default value for both source and destination, on both Linux and Mac, is /run/host-services/ssh-auth.sock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant