docker-spec 0.12.0 → 0.13.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 +7 -7
- data/lib/docker/spec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7174412a2e8fe8f3328fa8be501f7bcfb149112c
|
4
|
+
data.tar.gz: 405452e9624dcf6b090051bec9769e3b34f2e3d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6f1d05d1b65281c15be9aee23cb3ad8386b51983ee27fe89417f5f45c384d8f402d84e5fbbcf549afb2ed1613813cf7c6fdf0414013bb3b8363bc6e3e657131
|
7
|
+
data.tar.gz: 3c738e30ef9b75ed883f01746b2a9bae0ff8eb42388e61c7d3203328b35023bd634aa27820c501b7af4a8f69f287840d0455b575c080e1ae955865b2e8cefa09
|
data/lib/docker/spec.rb
CHANGED
@@ -119,12 +119,12 @@ 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
|
126
|
-
sudo chown -R `id -u`:`id -g` root.tar
|
127
|
-
cp root.tar
|
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 &&
|
128
128
|
sudo rm -rf $TMPDIR'
|
129
129
|
EOF
|
130
130
|
system command if Dir.exist?(ROOT_DIR)
|
@@ -178,7 +178,7 @@ EOF
|
|
178
178
|
@container = Docker::Container.create(opts).start
|
179
179
|
Timeout::timeout(10) do
|
180
180
|
loop do
|
181
|
-
@container.refresh!
|
181
|
+
@container.refresh!
|
182
182
|
break if @container.info["State"]["Running"]
|
183
183
|
end
|
184
184
|
end
|
data/lib/docker/spec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Breinlinger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|