Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

investigate windows path encodings for bind mounts #8

Open
softprops opened this issue Feb 9, 2019 · 1 comment
Open

investigate windows path encodings for bind mounts #8

softprops opened this issue Feb 9, 2019 · 1 comment
Labels

Comments

@softprops
Copy link
Owner

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

@rei-gun
Copy link

rei-gun commented Apr 17, 2020

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants