-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Mount ssh directory as separate volume #315
Conversation
This needed to save the known_hosts file during container re-creation
This needed to save the known_hosts file during container re-creation
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@davidalger could you review this PR? |
@davidalger This PR looks clean. Anything holding it back? |
I perhaps could/should have commented this long ago, but what's held this back is basically that the way The ability to work with absolute paths is a side-benefit perhaps, but the downside is, any directory above the targeted dir will also be chowned. I.e. with this change, You can see the logic here: https://github.com/davidalger/warden/blob/develop/images/php-fpm/context/docker-entrypoint#L42-L55 The side-effect may be fine since this is strictly a local dev image, but it's certainly not ideal, and I would like to avoid it if at all possible. Thoughts? |
Looks like we should introduce one more environment variable and process in in the php-fpm image |
Prevent changing owner on the /home directory
Hi @davidalger, |
@davidalger ? :) |
@davidalger could you check this PR as well? :) |
@ihor-sviziev Apologies for the delay on this. I think that works, since there shouldn't be any real adverse affects from the setting change with the old image (and on the off chance that there were, an image pull would solve it) |
@davidalger could you release a new stable version? Seems like we already have enough merged changes 🙂 |
@ihor-sviziev Updating the changelog now and will do that. |
New version 0.12.0 is tagged and released, new images built. I tested before and after pulling new images and it seemed to work. Thanks for the useful contribution (and all the other efforts you put into this project), they're much appreciated. And sorry again for the delay. |
This PR fixes a similar issue to #289, but with ssh known_hosts file.
Basically it does the same as #304 and #308
Steps to reproduce:
warden env up warden shell -T -c 'ssh git@github.com'
warden shell -T -c 'ssh git@github.com'
- there should not be any additional confirmationswarden env down warden env up warden shell -T -c 'ssh git@github.com'
Actual result: (Before)
❌ known_hosts file is missing, it's asking again for confirming GitHub host:
Expected result: (After)
✔ known_hosts file is present, it already trusts to GitHub host: