4eixos / eixo-docker

Suite of Perl modules to interact with Docker
Apache License 2.0
18 stars 4 forks source link

image#build fails on "RUN yum install -y npm" #4

Closed alambike closed 10 years ago

alambike commented 10 years ago

Build this dockerfile breaks image creation:

FROM    centos:centos6
# Enable EPEL for Node.js
RUN     rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Install Node.js and npm
RUN     yum install -y npm 
alambike commented 10 years ago

The reason is that yum output is too big to enter in a chunk, so docker api breaks it in various chunks. This cause an exception in image::build onProgress callback, because JSON->new->decode launch it when tries to decode the chunked json string.

alambike commented 10 years ago

Similar to https://github.com/docker/docker-py/issues/229

alambike commented 10 years ago

Corrected in version 1.103.