Skip to content

Commit

Permalink
updates for docker sdk >= 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
avirshup committed Apr 3, 2018
1 parent a391c1c commit 19b89c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dockermake/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def stage(self, startimage, newimage):
# write files to disk (would be nice to stream them, haven't gotten it to work)
tempdir = tempfile.mkdtemp(dir=BUILD_TEMPDIR)
with open(os.path.join(tempdir, 'content.tar'), 'wb') as localfile:
for chunk in tarfile_stream.stream():
for chunk in tarfile_stream:
localfile.write(chunk)
os.mkdir(cachedir)
os.rename(tempdir, cachedir)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
termcolor
docker >=2.0, <3.0
docker >=3.0
future
pyyaml
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
'docker-make = dockermake.__main__:main'
]
},
install_requires=requirements,
install_requires=['termcolor',
'docker',
'future',
'pyyaml'],
)

0 comments on commit 19b89c9

Please sign in to comment.