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 +4 -4
- data/lib/docker/spec.rb +15 -7
- data/lib/docker/spec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56b7e3ee8e9776797d1b297ca9632759584f469b
|
4
|
+
data.tar.gz: 48884b9e152d93bf6ad4be26db7a7b88bcde7832
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
sudo
|
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
|
data/lib/docker/spec/version.rb
CHANGED