docker-spec 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ee1d99287659ae09d421b882d4e8e2882b8e668
4
- data.tar.gz: 465b25d17c7736a9579956dcc37486ead11519f9
3
+ metadata.gz: 56b7e3ee8e9776797d1b297ca9632759584f469b
4
+ data.tar.gz: 48884b9e152d93bf6ad4be26db7a7b88bcde7832
5
5
  SHA512:
6
- metadata.gz: 6c23acebd7f4e4b8473668f0671d296d4cfa25aaf27b91c967f0fc78e0ab2be82ab771dbcb17e123eb2a95c73f0b4533f7bc1a49dd1690c5505fe7ca713e1a0c
7
- data.tar.gz: fe577baaefec41fbe22eeb7e804892913d3c153134b844fccd8d6c9910066053555e6d76330b879fa3c578c1ac71e01cf08d60a1a87cde216e925d7e25b1c30d
6
+ metadata.gz: 92ded6af790a943ec4f566836c0b2dcbbbd3aa9592a718d6b221bb7027a80778e2d18df0cc5a110ec889f611508a549ad347a6d178098b5134f5caa60de2c326
7
+ data.tar.gz: 98d30664d6c55a6ea24765d05617fdbb4a7f96f73d73d5ef812e1f298630525f581308d007d5ec41bad8cc3ffaa829458dae45202144240f34f075917f746820
data/lib/docker/spec.rb CHANGED
@@ -119,13 +119,21 @@ class DockerSpec
119
119
 
120
120
  def build_root
121
121
  command = <<EOF
122
- bash -ec 'export WD=$(pwd) && export TMPDIR=$(mktemp -d -t docker-spec.XXXXXX) &&
123
- cp -r root $TMPDIR/root && cd $TMPDIR &&
124
- sudo chown root:root -R root &&
125
- (cd root && sudo tar cf ../root.tar .) &&
126
- sudo chown -R `id -u`:`id -g` root.tar &&
127
- cp root.tar $WD && touch -t 200001010000.00 root.tar &&
128
- sudo rm -rf $TMPDIR'
122
+ bash -ec '
123
+ export WD=$(pwd)
124
+ export TMPDIR=$(mktemp -d -t docker-spec.XXXXXX)
125
+
126
+ cp -r root $TMPDIR/root
127
+ cd $TMPDIR
128
+ sudo chown root:root -R root
129
+ cd root
130
+ sudo tar --mtime="1970-01-01" -c -f ../root.tar .
131
+ cd ../
132
+ sudo chown -R `id -u`:`id -g` root.tar
133
+ cp root.tar $WD
134
+ touch -t 200001010000.00 $WD/root.tar
135
+ sudo rm -rf $TMPDIR
136
+ '
129
137
  EOF
130
138
  system command if Dir.exist?(ROOT_DIR)
131
139
  end
@@ -1,5 +1,5 @@
1
1
  module Docker
2
2
  module Spec
3
- VERSION = "0.14.0"
3
+ VERSION = "0.15.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Breinlinger