Alexander Larsson
223280f319
Make TarFilter more useful
...
There are a few changes:
* Callers can specify if they want recursive behaviour or not
* All file listings to tar are sent on stdin, to handle long lists better
* We can pass in a list of filenames which will be created as empty
files in the tarball
This is exactly what we want for the creation of layer tarballs given
a container fs, a set of files to add and a set of whiteout files to create.
2013-09-26 15:08:55 +00:00
Alexander Larsson
8f23945f7f
Archive: Fix up tar commandline arguments in TarFilter()
...
There is no need to duplicate the compression flags for
every element in the filter.
2013-09-26 15:08:55 +00:00
Pascal Borreli
9b2a5964fc
Fixed typos
2013-08-12 18:53:06 +01:00
Guillaume J. Charmes
f7542664e3
Make sure ADD will create everything in 0755
2013-07-29 11:03:09 -07:00
Guillaume J. Charmes
08a87d4b3b
Fix #1162 - Remove bufio from Untar
2013-07-08 13:42:17 -07:00
Caleb Spare
e93afcdd2b
Use fmt.Errorf when appropriate.
2013-07-03 14:35:18 -07:00
Guillaume J. Charmes
ec1dfc521c
Merge pull request #992 from unclejack/use_numeric_owner_for_tar
...
* Runtime: use --numeric-owner for Tar and Untar
2013-06-24 18:40:43 -07:00
Solomon Hykes
290b1973a9
Fix a bug which caused creation of empty images (and volumes) to crash. FIxes #995 .
2013-06-22 12:29:42 -07:00
unclejack
d7d42ff4fe
use --numeric-owner for tar and untar
2013-06-22 18:53:10 +03:00
Solomon Hykes
36d610a388
- Builder: fixed a regression in ADD. Improved regression tests for build behavior.
2013-06-20 20:20:16 -07:00
Solomon Hykes
507ea757a5
* Builder: correct the behavior of ADD when copying directories.
2013-06-19 14:26:11 -07:00
Solomon Hykes
b368d21568
Merge branch 'master' into fix-add-behavior
2013-06-19 10:31:50 -07:00
Solomon Hykes
5be7b9af3e
* Builder: fixed the behavior of ADD to be (mostly) reverse-compatible, predictable and well-documented.
2013-06-18 20:28:49 -07:00
Guillaume J. Charmes
ee5df76579
Merge pull request #885 from dotcloud/remove_bsdtar
...
* Runtime: Remove bsdtar dependency
2013-06-18 17:24:26 -07:00
Guillaume J. Charmes
02c291d13b
Fix bug on compression detection when chunck < 10bytes
2013-06-17 18:11:58 -07:00
Solomon Hykes
5b8287617d
+ Builder: ADD of a local file will detect tar archives and unpack them
...
into the container instead of copying them as a regular file.
* Builder: ADD uses tar/untar for copies instead of calling 'cp -ar'.
This is more consistent, reduces the number of dependencies, and
fixe #896 .
2013-06-14 16:43:39 -07:00
Guillaume J. Charmes
0425f65e63
Remove bsdtar by checking magic
2013-06-13 17:53:38 -07:00
Solomon Hykes
561ceac55d
* Runtime: pass a guaranteed environment to bsdtar for predictable behavior without depending on the underlying host configuration.
2013-05-31 22:25:48 -07:00
Guillaume J. Charmes
54db18625a
Add Extension() method to Compresison type
2013-05-28 13:37:49 -07:00
Solomon Hykes
baacae8345
'docker push' buffers filesystem archives on disk instead of memory.
2013-04-21 14:23:55 -07:00
unclejack
3c5d2e4661
add support for xz compression
...
This adds xz as a compression option.
xz is alread supported by bsdtar without the external xz program.
2013-04-02 02:16:28 +03:00
Solomon Hykes
6ede6bc8f2
Comment CmdStream a little bit to facilitate future fixes and contributions
2013-03-29 13:26:02 -07:00
Solomon Hykes
fdae64d8d7
Merge remote-tracking branch 'robryk/cmdstream-deadlock'
2013-03-29 13:20:17 -07:00
Solomon Hykes
f85e6548c7
Comment to explain CmdStream
2013-03-29 13:18:59 -07:00
Robert Obryk
58befe3081
Fix a deadlock in CmdStream.
...
As per FIXME, CmdStream could have deadlocked if a command printed
enough on stderr. This commit fixes that, but still keeps all of
the stderr output in memory.
2013-03-29 12:55:48 +01:00
Solomon Hykes
ef711962d5
Folded graph/ back into main package
2013-03-21 17:47:23 -07:00