You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect path when using --docker-volume-basedir with local invoke/start-api #1834
The wrong path is being used when --docker-volume-basedir is used. By the help description, the path should be to the SAM template, but for expected behavior you have to provide the path to the build artifacts.
Currently I don't have remote Docker setup so I couldn't verify it. I need to dive deep into the code to see the root cause. But it seems related to --base-dir option in sam build. We made some changes related to that option in 1.21 so it matches to what @nirradi said. While I'm on investigation, feel free to try using --base-dir
Trying to reproduce this issue in the current version 1.24.1 sam local invoke "HelloWorldFunction" -e events/event.json --docker-volume-basedir /Users/xazhao/sshfs
And in the log it works properly Mounting /Users/xazhao/sshfs/.aws-sam/build/HelloWorldFunction as /var/task:ro,delegated inside runtime container
Since it was one year ago, I believe this issue has been fixed.
I will close the issue. If you find other bugs, feel free to create a new issue.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Activity
nirradi commentedon Apr 13, 2021
seems to be working properly in 1.12, and stops working again in 1.22
xazhao commentedon Jul 20, 2021
Currently I don't have remote Docker setup so I couldn't verify it. I need to dive deep into the code to see the root cause. But it seems related to
--base-diroption insam build. We made some changes related to that option in 1.21 so it matches to what @nirradi said. While I'm on investigation, feel free to try using--base-dirxazhao commentedon Jul 23, 2021
Trying to reproduce this issue in the current version 1.24.1
sam local invoke "HelloWorldFunction" -e events/event.json --docker-volume-basedir /Users/xazhao/sshfsAnd in the log it works properly
Mounting /Users/xazhao/sshfs/.aws-sam/build/HelloWorldFunction as /var/task:ro,delegated inside runtime containerSince it was one year ago, I believe this issue has been fixed.
I will close the issue. If you find other bugs, feel free to create a new issue.
github-actions commentedon Jul 23, 2021
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.