Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609636 - app-emulation/docker-compose fails to build
Summary: app-emulation/docker-compose fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alex Brandt (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-17 11:46 UTC by Andrew
Modified: 2017-02-17 12:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge.info,5.91 KB, text/plain)
2017-02-17 11:49 UTC, Andrew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew 2017-02-17 11:46:42 UTC
docker-compose versions 1.10.1 and 1.11.1 (docker-py version 2.0.2) fails on command "build" with the following stack trace:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/docker-compose", line 11, in <module>
    load_entry_point('docker-compose==1.11.1', 'console_scripts', 'docker-compose')()
  File "/usr/lib64/python3.4/site-packages/compose/cli/main.py", line 88, in main
    command()
  File "/usr/lib64/python3.4/site-packages/compose/cli/main.py", line 140, in perform_command
    handler(command, command_options)
  File "/usr/lib64/python3.4/site-packages/compose/cli/main.py", line 247, in build
    force_rm=bool(options.get('--force-rm', False)))
  File "/usr/lib64/python3.4/site-packages/compose/project.py", line 313, in build
    service.build(no_cache, pull, force_rm)
  File "/usr/lib64/python3.4/site-packages/compose/service.py", line 804, in build
    buildargs=build_opts.get('args', None),
  File "/usr/lib64/python3.4/site-packages/docker/api/build.py", line 139, in build
    path, exclude=exclude, dockerfile=dockerfile, gzip=gzip
  File "/usr/lib64/python3.4/site-packages/docker/utils/utils.py", line 105, in tar
    t.addfile(i, f)
  File "/usr/lib64/python3.4/tarfile.py", line 1952, in addfile
    buf = tarinfo.tobuf(self.format, self.encoding, self.errors)
AttributeError: 'NoneType' object has no attribute 'tobuf'

The problem was not appearing previously with docker-py==1.10.6, but the previous docker-compose versions lack some features I need. The whole situation looks like a bug in docker-py 2.x.
Comment 1 Andrew 2017-02-17 11:49:57 UTC
Created attachment 464110 [details]
emerge --info output
Comment 2 Andrew 2017-02-17 12:04:51 UTC
Seems to be my fault: https://github.com/docker/compose/issues/4363
Comment 3 Andrew 2017-02-17 12:05:07 UTC
Sorry :\