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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f60c0fcf0bed0115d2091b30d66b841d88614017
4
- data.tar.gz: d7f7c2a04495e39d49cf9ec05672e26f901b66b7
3
+ metadata.gz: 7174412a2e8fe8f3328fa8be501f7bcfb149112c
4
+ data.tar.gz: 405452e9624dcf6b090051bec9769e3b34f2e3d2
5
5
  SHA512:
6
- metadata.gz: ee9ab7dd0d0024f7bba9decd56b8271e5fa8b9b58fcfb917ee49a4566e17d7832bc4ac62dd0fda037e16470913ffecc6c11eb21b81cd2c0c99adf55df8746496
7
- data.tar.gz: 2695f9a195974871331946439925de9b0eebf865baf2a6322797534f4a4e77681a1222cc101dd33e5f92b914028c69a6bbcb20672cc47d0eb82ed3534f4d8b71
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 zcf ../root.tar.gz .) &&
126
- sudo chown -R `id -u`:`id -g` root.tar.gz &&
127
- cp root.tar.gz $WD &&
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
@@ -1,5 +1,5 @@
1
1
  module Docker
2
2
  module Spec
3
- VERSION = "0.12.0"
3
+ VERSION = "0.13.0"
4
4
  end
5
5
  end
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.12.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-01-16 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler