Simplify build upload, improve testing of builds#900
Conversation
shykes
commented
Jun 15, 2013
- Builder: simplify the upload of the build context. Simply stream a tarball instead of multipart upload with 4 intermediary buffers. Simpler, less memory usage, less disk usage, and faster.
- Builder: added a regression test for Fix a bug which caused builds to fail if ADD was the first command #895
- Builder: reorganized unit tests for better code reuse, and to test non-empty contexts
…tarball instead of multipart upload with 4 intermediary buffers. Simpler, less memory usage, less disk usage, and faster.
…non-empty contexts
|
I'm hitting a bug when combining Tar() + http chunked transfer, closing until I can find it. |
Fix progress bar
|
I see there is an update of APIVERSION, could you add some doc ? |
|
ping @creack |
|
Couple of minor things:
Otherwise, LGTM |
|
Actually I need to bring back the multipart upload code to keep reverse compatibility with 1.2 clients and daemons... :( |
|
Closing until that's done. |
… semver, but our API should still be in 0.X versioning, in which case semver allows breaking changes.
|
I added documentation for 1.3 API. I also added a warning for clients connecting to /build for version 1.2 or older. Ideally we would preserve reverse-compatibility with the old build method, but it would be a lot of work for not much benefit, since the API should still be considered unstable anyway. |
|
The whole |
|
Otherwise, LGTM |
|
FIxed references to 1.3. I can't find the "what's new" section in the other versions of the API docs. Should I just add one? |
Conflicts: api.go builder_client.go commands.go
|
There is an issue with the merge. commands.go l196, cli.host and cli.port does not exist anymore, it has been replaced by cli.addr. |
|
Yeah I'm aware of that ADD problem, fix underway. (But I think it's On Thu, Jun 20, 2013 at 4:24 PM, Guillaume J. Charmes <
|
Conflicts: commands.go
Conflicts: buildfile_test.go
|
Ok, we should be good. I have fixed ADD behavior and added tons of regression tests. It's also much easier to add new tests for builds with non-empty contexts. |
|
Small merge issue around line 200 in commands.go And you still need to update http://docs.docker.io/en/latest/api/docker_remote_api/ |
|
Also, nothing new (same issue in master) but when your Dockerfile doesn't contain any CMD, |
|
About the api doc update - what needs to be updated exactly? On Fri, Jun 21, 2013 at 5:54 AM, Victor Vieux notifications@github.com
|
|
in you should change The current verson of the API is |