From 2995bd23f2b83ada2c9fa6323177b9da73cb58a3 Mon Sep 17 00:00:00 2001 From: Tim Dysinger Date: Fri, 25 Mar 2016 11:43:40 -0700 Subject: [PATCH] mount $HOME in the container 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 --- src/Stack/Docker.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Stack/Docker.hs b/src/Stack/Docker.hs index fddb11ce19..3de4f90496 100644 --- a/src/Stack/Docker.hs +++ b/src/Stack/Docker.hs @@ -331,6 +331,7 @@ runContainerAndExit getCmdArgs ,"-e","HOME=" ++ toFilePathNoTrailingSep sandboxHomeDir ,"-e","PATH=" ++ T.unpack newPathEnv ,"-e","PWD=" ++ toFilePathNoTrailingSep pwd + ,"-v",toFilePathNoTrailingSep homeDir ++ ":" ++ toFilePathNoTrailingSep homeDir ,"-v",toFilePathNoTrailingSep stackRoot ++ ":" ++ toFilePathNoTrailingSep stackRoot ,"-v",toFilePathNoTrailingSep projectRoot ++ ":" ++ toFilePathNoTrailingSep projectRoot ,"-v",toFilePathNoTrailingSep sandboxHomeDir ++ ":" ++ toFilePathNoTrailingSep sandboxHomeDir