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

Where should I add "dockerless: true" #90

Open
ColinEberhardt opened this issue Nov 26, 2020 · 1 comment
Open

Where should I add "dockerless: true" #90

ColinEberhardt opened this issue Nov 26, 2020 · 1 comment

Comments

@ColinEberhardt
Copy link

The docs indicate the addition of a custom property:

custom:
  # this section allows for customization of the default
  # serverless-rust plugin settings
  rust:
    # flags passed to cargo
    cargoFlags: '--features enable-awesome'
    # experimental! when set to true, artifacts are built locally outside of docker
+   dockerless: true

And I can see other users adopting this approach: https://github.com/NEU-DSG/dailp-encoding/blob/f0500d5a15201f3f961668aebc3b5a1990d8b649/serverless.yml#L12

However, your test cases place it in a different location:

Unfortunately wherever I add this option it seems to be ignored ...

$ npm run invoke

> [email protected] invoke /Users/colineberhardt/Temp/hello_cargo/aws
> serverless invoke local -f lucky_numbers -d '{"body": "{\"name\":\" \", \"count\": 10}"}'

Serverless: Building native Rust lucky_numbers func...
docker: Error response from daemon: dial unix docker.raw.sock: connect: connection refused.
See 'docker run --help'.
Serverless: Dockerized Rust build encountered an error: undefined 125.
@jquesada2016
Copy link

Did you solve this issue? I'm running into the same thing.

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

No branches or pull requests

2 participants