-
Notifications
You must be signed in to change notification settings - Fork 185
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
MacOS Docker deploy use /private/var instead of /var #461
Comments
I'm not sure what you are referring to here. The only thing I could find was https://github.com/motdotla/node-lambda/blob/master/lib/main.js#L346 - assuming you supplied to codeDirectory I don't see a mac OS specific problem here. |
Actually, from OSX, depending on your node version So in your Docker config you have to add both paths as shared files. As @ttonyh said, this also depends on the version of your Docker Application for OSX (and not the version of the Docker engine), and fortunately the last versions permit to add both paths, I tested it from the version To completely fix this, maybe you could use |
i'm getting a similar issue, see below.
|
@Ethaan I ran into this too. Turns out you have to use the build specific docker image from lambci: |
In MacOS, please consider changing the Docker command to use /private instead of /var. "/private/var" is an alias to "/var" and is by default exported to Docker i MacOS. To get node-lambda to work, I had to remove the default value of "/private" and replace it with "/var/folders". This is because Docker (8.x) won't let you have both because they are considered the same.
Solution: Since the tmp folder path is probably auto generated, you might need to just prepend "/private" to the path, if the OS is MacOS.
Here's more info on the subject:
https://stackoverflow.com/questions/45122459/docker-mounts-denied-the-paths-are-not-shared-from-os-x-and-are-not-known
The text was updated successfully, but these errors were encountered: