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
Feature Request: Specifying a temporary directory/environment variable for any unzipping/mounting in SAM local #773
Comments
I figured out a work around already, adding for any other google-searchers. I simply create a
|
Hey, I am attempting to use WSL and aws-sam-cli together. I've also got a working docker setup over WSL, but have not yet gotten my Steps to try:Initialize the sam-app |
this isnt still a thing is it? TMPDIR=/tmp is not working |
@amlcodes the "/c/tmp" is the fun thing so its on the windows host |
Ahh I understand. Since I'm on mac, I would use /tmp correct? |
@amlcodes Yeah I think so. |
@er1c
Basically I want to access the file on the host machine inside the lambda function. |
Description:
I'm developing on Windows, using Windows Subsystem Linux (WSL) for running anything aws-related (as well as Scala commands/etc). I have a windows native-docker server, and run docker inside WSL using
export DOCKER_HOST=tcp://localhost:2375
(similar to: https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly)I'm developing a java application, the SAM client extracts the jar to the WSL /tmp directory, which isn't mountable by the Windows Docker process.
Example SAM CLI
Proving to myself the mounting is the issue
Proving to myself that I can mount any directory in /c/, from WSL
So I need something like
--docker-volume-basedir /c/Users/Eric\ Peters/IdeaProjects/ta-html-to-pdf-lambda
but that will help specify a working directory for the unzip to occur.Looks like this is happening somewhere around: https://github.com/awslabs/aws-sam-cli/blob/0e0f8159fab66cc4d4b66a0f01aa39579bc02fa2/samcli/local/lambdafn/runtime.py#L177
The text was updated successfully, but these errors were encountered: