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
'docker-volume-basedir' option for 'sam build' command #963
Currently, sam build --use-container does not work when using a remote Docker host (e.g., like the one in this guide), even though the project directory exists on the remote machine. Unlike sam local, the sam build command has no docker-volume-basedir option and does not respect the SAM_DOCKER_VOLUME_BASEDIR environment variable. Furthermore, the base-dir option does not behave like docker-volume-basedir, as sam build makes the assumption that base-dir is on the local machine.
Proposal
Add the docker-volume-basedir option to the sam build command and have ApplicationBuilder treat it just like InvokeContext does (no path conversion or resolution).
Due to the advanced nature of this setup, some notes would need to be added to the documentation explicitly warning users that the project directory must exist on the remote host at the path specified by docker-volume-basedir.
Reacted by Cosmin Catalin SANDA, Juanlb, iain wright and Matthew McKinnon
Activity
acolombier commentedon May 17, 2019
Hi @bryanburke , we are facing the same issue. Did you find any temporary workaround, or worked on a patch perhaps ?
cosmincatalin commentedon Oct 3, 2019
Same here. It's impossible to use a CI/CD tool runs build with containers.
koenverwimp commentedon Oct 14, 2019
We run into the same problem and also got stuck with CI/CD running in containers.
Any progress on this?
gorisjurgen commentedon Oct 14, 2019
We are also running into the same problem with our CI/CD running in containers.
juanlb commentedon Mar 4, 2020
I know this is not a solution, but a useful workaround: https://medium.com/@juanlb/aws-sam-build-inside-a-docker-for-gitlab-ci-cd-b10954f2f02b?sk=441ca3244bd67df99f3d426c257eba80
vleandersson commentedon Mar 3, 2021
👀