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

Support UNIX socket #146

Closed
valeriomazzeo opened this issue Nov 11, 2017 · 1 comment
Closed

Support UNIX socket #146

valeriomazzeo opened this issue Nov 11, 2017 · 1 comment
Assignees

Comments

@valeriomazzeo
Copy link

valeriomazzeo commented Nov 11, 2017

This would eventually allow a Client to be initialised with a UNIX socket to perform the curl equivalent:

$ curl --unix-socket /var/run/docker.sock -H "Content-Type: application/json" \
  -d '{"Image": "alpine", "Cmd": ["echo", "hello world"]}' \
  -X POST http:/v1.24/containers/create
{"Id":"1c6594faf5","Warnings":null}

$ curl --unix-socket /var/run/docker.sock -X POST http:/v1.24/containers/1c6594faf5/start

$ curl --unix-socket /var/run/docker.sock -X POST http:/v1.24/containers/1c6594faf5/wait
{"StatusCode":0}

$ curl --unix-socket /var/run/docker.sock "http:/v1.24/containers/1c6594faf5/logs?stdout=1"
hello world

From the Vapor slack help channel:

  • Support AF_UNIX here
  • Make a stream AF_UNIX socket
@Joannis
Copy link
Contributor

Joannis commented Nov 11, 2017

I'm completely behind this one. I'll add it to Vapor 3 for sure. I doubt this'll make it for Vapor 2 with Vapor 3 being in development.

@tanner0101 tanner0101 added this to Backlog in Vapor 3 Feb 12, 2018
@tanner0101 tanner0101 added this to the 3.0.0-beta.3 milestone Feb 13, 2018
@tanner0101 tanner0101 removed this from the 3.0.0-beta.3 milestone Feb 20, 2018
@tanner0101 tanner0101 removed this from Backlog in Vapor 3 Mar 21, 2018
@Joannis Joannis closed this as completed Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants