hanabu / lambda-web

Run Rust web frameworks on AWS Lambda
MIT License
115 stars 38 forks source link

Unclear deployment documentation #1

Open mwnDK1402 opened 3 years ago

mwnDK1402 commented 3 years ago

I'm getting this error on Windows, trying to build for Lambda in a container:

docker run -it --rm -v ~/.cargo/registry:/root/.cargo/registry:z -v .:/build:z lambda_builder
docker: Error response from daemon: create .;C: ".;C" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.

Seeing a real example repository with a GitHub Action for continuous deployment would help a lot.

darioackermann commented 10 months ago

You might want to use --mount and absolute paths for Windows. Also, depending on your setup, you might to specify windows paths to the source directory e,g.

docker volume create cargo-registry
docker run --rm --mount type=bind,source="C:\path\to\src",target=/build --mount type=volume,source=cargo-registry,target=/root/.cargo/registry/ lambda-builder