-
Notifications
You must be signed in to change notification settings - Fork 841
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 $HOME in the container #1951
Conversation
This patch is for docker projects and specifically to assist tools (e.g. Emacs) that read/write files in $HOME for dev work (flycheck & friends) resolves #1949
LGTM! Does this have any potential interactions with the ssh dir mounting stuff? https://github.com/commercialhaskell/stack/blob/mount-home-in-container/src/Stack/Docker.hs#L331 - or perhaps this allows that simplified. Probably not, since inside the container there's also the sandbox home dir. Will everything that expects things in the homedir use absolute paths? In other words, it seems like @borsboom Thoughts? |
I'll wait for @borsboom's thoughts. Mounting $HOME could cause unexpected probs. |
I think this should work fine with the |
By the way (since you mentioned it elsewhere), this should all work fine for directories with spaces, since the whole argument to |
Seems like this would cause a problem if using a container where the user name in the container (home directory actually) is the same as on the host. Should this be checked first? |
I'm not sure how much it would cause problems, really. Stack overrides $HOME in the container anyway, so I guess it would only matter if something you're running in Stack needs files that exist in a path in the home directory within the image. |
@borsboom Does that reasoning also cover the case where the user is named |
This patch is for docker projects and specifically to assist tools (e.g.
Emacs) that read/write files in $HOME for dev work (flycheck & friends)
resolves #1949