lambda-rust icon indicating copy to clipboard operation
lambda-rust copied to clipboard

investigate windows path encodings for bind mounts

Open softprops opened this issue 6 years ago • 1 comments

the documentation includes a the following suggested way to run this container

docker run --rm \
    -v ${PWD}:/code \
    -v ${HOME}/.cargo/registry:/root/.cargo/registry \
    -v ${HOME}/.cargo/git:/root/.cargo/git \
    softprops/lambda-rust

this is actually what the serverless-rust plugin does

its unclear if both or either actually work with windows paths and docker bind mounts. lets do some investigation on so that we can know then followup with windows specific docs if we need them

softprops avatar Feb 09 '19 20:02 softprops

Hello, I am on Windows 10 using the Git Bash terminal and this command always results in error: could not find `Cargo.toml` in `/code` or any parent directory

my project folder name is authorizer, here's my command:

    -v ${PWD}:/authorizer \
    -v ${HOME}/.cargo/registry:/root/.cargo/registry \
    -v ${HOME}/.cargo/git:/root/.cargo/git \
    softprops/lambda-rust

i've tried running this command inside the authorizer folder and 1 level above it.

I have already installed rust via rustup-init.exe so I have the .cargo folder in my home directory, although I have not managed to successfully run the rustc compiler on any rust files because I want to do all my compilation and execution inside your docker image

my Cargo.toml

[package]
name = "authorizer"
version = "0.1.0"
authors = ["redacted"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

rei-gun avatar Apr 17 '20 03:04 rei-gun