fix docker build output parser #8
Conversation
…update docker-py to docker for newer API support
|
@linuxfreakus thanks for the PR.What's the version of docker you are using?Mine is 1.11.1, and never encountered |
|
I'm using docker engine version |
|
I did some tests on some of my private projects with docker 1.13.1, but no BTW, upgrading |
|
It was happening for me with every docker file that I tried... I'm using
Docker for Mac too if that matters, though I doubt it would because it
still is running the docker engine, just in a VM.
I'm not at my laptop at the moment, but I'll grab one of my Dockerfiles a
little later.
…On Mon, Feb 20, 2017 at 12:50 AM, jzl ***@***.***> wrote:
I did some tests on some of my private projects with docker 1.13.1, but no
ExtraData errors were throwed.Could please provide your Dockerfiles and
scripts to reproduce this issue?
BTW, upgrading docker-py may impact a lot, so if its version is not
necessarily related to this issue, it's not a good idea to upgrade it here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABYplZpfYfrzUroY4V4X_9I5t75F-FgOks5reUWxgaJpZM4MEyFv>
.
|
|
Here is a stripped down test of a couple images... I took out anything
proprietary, it still gives me the errors if I use the unpatched code.
Upgrading docker-py isn't strictly necessary, but I've been running into
conflicts since we have followed the upgrades to that library here and the
longer it goes without changing it, there will probably be more modules
that have pulled in the newer version (I could work around it by either
using a virtualenv or still having a patch but only for the lib version).
It would be great if they'd have named the modules to match so that they
could be used in parallel, but they didn't.
…--Eric
On Tue, Feb 21, 2017 at 7:23 AM, Eric Nichols <linuxfreakus@gmail.com>
wrote:
It was happening for me with every docker file that I tried... I'm using
Docker for Mac too if that matters, though I doubt it would because it
still is running the docker engine, just in a VM.
I'm not at my laptop at the moment, but I'll grab one of my Dockerfiles a
little later.
On Mon, Feb 20, 2017 at 12:50 AM, jzl ***@***.***> wrote:
> I did some tests on some of my private projects with docker 1.13.1, but
> no ExtraData errors were throwed.Could please provide your Dockerfiles
> and scripts to reproduce this issue?
>
> BTW, upgrading docker-py may impact a lot, so if its version is not
> necessarily related to this issue, it's not a good idea to upgrade it here.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#8 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABYplZpfYfrzUroY4V4X_9I5t75F-FgOks5reUWxgaJpZM4MEyFv>
> .
>
|
|
File didn't attach from email I guess? Here is is again it looks like github has a different way to attach files. |
|
Hi @linuxfreakus , all goes well on my linux box with Dockerfiles you provided, I'll test again on my mac book later. |
|
Hi @linuxfreakus, The issue was reproduced on my mac, and your patch to But upgrading dependency on |
|
OK, your call on the dependency change. I can pull that out, although I think the impact specifically on existing The impact that I can see is that I'll update this PR to remove the dependency change and continue to use my patched fork since I would rather use the API version that is not at end of life. |
|
And great work on this module BTW! I really can't understand why docker's own CLI doesn't already do this stuff since everyone pretty much has to do this by hand if not automated! |
|
I potentially have another PR where I also integrate this module with |
|
Great!Thanks for the PR again, I'll merge it once you have removed the dependency part. And your idea of integrating I opened a issue docker/docker-py#1476 on |
|
Hmm.... so it turns out that this still doesn't fix the problem, I have another Dockerfile that compiles some stuff from source and somehow the output that it spits out can cause the Further investigation reveals that this has been an ongoing problem and python's json module does not make it easy because it exposes a lot less capability than one might like for handling edge cases. They ostensibly have a fix as of version I'm going to do some more tinkering on my side since it looks like this PR, although helpful for some outputs, still does not solve the issue for all cases. |
|
Interesting, I didn't expect this issue would be that complicated.So it's inevitable to do a non-back-compatible upgrade now.And looking forward to your patch! |
|
Hi, @linuxfreakus I'll merge your PR now.But since the change to the dependency part may break upgradings, I'll improve that part later |
Docker must be outputting something different than whatever docker was outputting when this tool was last updated. I was getting some output that had multiple json objects which resulted in ExtraData errors.
This fixes those errors and also upgrades the
docker-pydependency to the newerdocker 2.1.0which meant changing how the util was creating its client. It seems to work fine otherwise and the tests all pass for me.