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
Same for me, the documentation unfortunately is very ambiguous.
I've been trying to make this work with the following setup:
Docker-compose with two services:
app: This is a serverless framework app that depends on serverless-webpack and serverless-localstack
localstack: This is based on image localstack/localstack:latest
To run:
docker-compose up localstack
docker-compose up app to build and deploy the lambdas (which invokes serverless webpack --stage local and serverless deploy --stage local)
A .webpack folder is created in the host and without mountCode everything is deployed fine, although it takes around 5+ minutes because of all the docker bindings.
I wanted then to improve by binding the .webpack folder to localstack /tmp/localstack (according to documentation), but unfortunately it won't work, I've tried all kinds of env var + serverless configuration settings.
I'm working with mountCode + serverless-webpack.
My main question is:
Do I need to create a docker volume? If so, how should this volume be defined?
Does it make sense to use
mountCode
together withLAMBDA_REMOTE_DOCKER
=true
?The text was updated successfully, but these errors were encountered: