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

feat: add the capability to override the docker cli and arguments #61

Merged
merged 1 commit into from
Jan 13, 2020

Conversation

sebasmagri
Copy link
Contributor

In environments that don't provide the docker command, or in which it is on a different path, the variable SLS_DOCKER_CLI can be used to override the default, and the SLS_DOCKER_ARGS can be used to set additional parameters for the run subcommand as needed.

For example, in environments which provide podman instead:

$ SLS_DOCKER_CLI=podman serverless invoke ...

In environments that don't provide the `docker` command, or in which it is on a different path, the variable `SLS_DOCKER_CLI` can be used to override the default, and the `SLS_DOCKER_ARGS` can be used to set additional parameters for the `run` subcommand as needed.

For example, in environments which provide `podman` instead:

```
$ SLS_DOCKER_CLI=podman serverless invoke ...
```
@sebasmagri
Copy link
Contributor Author

@softprops let me know what you think of this and if I should add this to the changelog

@softprops
Copy link
Owner

Looks good @sebasmagri

@softprops softprops merged commit 17c2d2b into softprops:master Jan 13, 2020
@sebasmagri sebasmagri deleted the feature-override-docker-cli branch January 13, 2020 14:00
@sebasmagri
Copy link
Contributor Author

@softprops any chance to get this released?

@softprops
Copy link
Owner

Sorry for the lag on this. I'll try to get to that at lastest by next weekend. I'll update this thread when I do

@sebasmagri
Copy link
Contributor Author

Hey @softprops! Any way I can help getting this thru? Best Regards,

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

Successfully merging this pull request may close these issues.

2 participants