Comments (7)
Just see the post, indeed, seems far better than the v3, it will allow docker-php to focus more on docker API and not on request / response stuff.
from docker-php.
We need to have our own adapter, as the StreamAdapter of Guzzle 4 only allow to get the response as stream but does not send the request with a stream, it will cause a regression for the memory problem with big context.
from docker-php.
👍
from docker-php.
@joelwurtz thanks for having a look! Do you think it would be possible to contribute to the existing stream adapter instead of writing a new one completely from scratch?
from docker-php.
Yes definitely, i think we have to rewrite the request part in the StreamAdapter and add an option to send the request as a stream.
Actually guzzle send the request by creating a stream_context and populate the header and content option. Then they open the url with "fopen" and passing the context to it : https://github.com/guzzle/guzzle/blob/master/src/Adapter/StreamAdapter.php#L342
We have to wait for this PR also : guzzle/streams#4 as we have a stream from a proc_open pipe and there is no uri so we got an error with the build command.
from docker-php.
Also for the moment i only tested with http url (so tcp transport), and i'm not sure it will work with file socket transport, we may also need to write a PR to specify the transport entrypoint for the StreamAdapter to work with unix:///var/run/docker.sock
from docker-php.
Solve with #34
from docker-php.
Related Issues (20)
- Stopping an already stopped container throws a serializer exception HOT 2
- Composer Install fail (nikic/php-parser, etc.)
- The option "X-Registry-Auth" with value Docker\API\Model\AuthConfig is expected to be of type "string", but is of type "Docker\API\Model\AuthConfig"
- Unable to connect to 18.09 version of Docker with SSL/TLS HOT 3
- interact with bash with containerExec() function
- interact with container bash with execStart
- interact with with container bash
- Using env variables on creation of an Container HOT 1
- Invalid argument supplied for foreach() when running containerInspect HOT 4
- Cannot read response
- ContainerSummeryItem does not have Mount Target HOT 1
- Warning: Invalid argument supplied for foreach() in /Normalizer/NetworkSettingsNormalizer.php on line 60 HOT 1
- [question] How do run equivilent of docker cp <source> <container-name>:<destination>
- How to set the directory from the Windows-host as container volume? HOT 3
- Verbose / debug mode available?
- containerAttachWebsocket fread(): Length parameter must be greater than 0
- Can I connect via https and with basic auth? HOT 3
- [Feature Request] Add a close() method to the websocket stream
- Declaration of transformResponseBody() must be compatible HOT 6
- Getting output from an `exec` invocation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-php.