docker-spec 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbbc4d9b12f0d46e41b42d3ec87bcec1b188cb8a49e8cbbd40a0d2151fcc4dc1
4
- data.tar.gz: 7b00dcd28af82e28dfeba0e42d6e5e9d361b2216e71c77327a5cf0ea3d7223a5
3
+ metadata.gz: 0aabf1804ec4cf0e9ed504ce8fcad064d96b431d37201c78d4e4aa982a5be031
4
+ data.tar.gz: 24c5d14f51a0b391605f0946701ed6c6878356b8f32e03a873f6134246cc4e40
5
5
  SHA512:
6
- metadata.gz: 94f1c99ec0854299e616e284d98a351f840a1b0740a7c2cd9c9e5c20700eb8321dd5dae2ba6486e36585b505f2c1a2d637d63021b0c1549a74ee21d455fd1839
7
- data.tar.gz: 215a0492c625c56a52d69309896b88b2f86e1ac63f2c8096cea2b23f4104f53dc3b60db8bde0c12b3fd946d8a69babf6612dd99ccddb6e01ff1f613f4a52c77a
6
+ metadata.gz: 197fe00cc5ec8c764122d2c45a64b07b1a8e69ff07f6f643f1681a6dc271cb92b2dd710d333c2b8ccc828cb8090b3f6d61859ccd51ebe774df2c943cba03d3f0
7
+ data.tar.gz: 81665d44207239f8f5085bb239bc8f7c1b10c63f16958d58ffc5b8f89256129d58162dde1f61b61c402599c4c44a7d1bcd7e03fcadd2b217eb13989378feafc1
data/lib/docker/spec.rb CHANGED
@@ -49,7 +49,7 @@ class DockerSpec
49
49
 
50
50
  def push
51
51
  @config[:push_container] = get_config(:push_container, 'DOCKER_SPEC_PUSH_CONTAINER',
52
- 'Push new tag? ')
52
+ 'Push new tag? ')
53
53
  if @config[:push_container]
54
54
 
55
55
  @config[:tag_db] ||
@@ -91,11 +91,12 @@ class DockerSpec
91
91
  serveraddress: @config[:serveraddress] || 'https://index.docker.io'
92
92
 
93
93
  image.tag repo: @config[:image_name], tag: new_tag, force: true
94
- puts "\nINFO: pushing #{@config[:image_name]}:#{new_tag} to DockerHub"
94
+ puts "\nINFO: pushing #{@config[:image_name]}:#{new_tag} to Registry"
95
+ binding.pry
95
96
  image.push nil, tag: new_tag
96
97
 
97
98
  image.tag repo: @config[:image_name], tag: 'latest', force: true
98
- puts "INFO: pushing #{@config[:image_name]}:latest to DockerHub"
99
+ puts "INFO: pushing #{@config[:image_name]}:latest to Registry"
99
100
  image.push nil, tag: 'latest'
100
101
 
101
102
  # Store the new tag in the tag_db
@@ -126,17 +127,17 @@ class DockerSpec
126
127
  def build_root
127
128
  command = <<EOF
128
129
  bash -ec '
129
- export WD=$(pwd)
130
+ export WD="$(pwd)"
130
131
  export TMPDIR=$(mktemp -d -t docker-spec.XXXXXX)
131
132
 
132
- cp -r root $TMPDIR/root
133
+ cp -r root $TMPDIR/root
133
134
  cd $TMPDIR
134
135
  sudo chown root:root -R root
135
136
  cd root
136
137
  sudo tar --mtime="1970-01-01" -c -f ../root.tar .
137
138
  cd ../
138
139
  sudo chown -R `id -u`:`id -g` root.tar
139
- cp root.tar $WD
140
+ cp root.tar "${WD}"
140
141
  touch -t 200001010000.00 $WD/root.tar
141
142
  sudo rm -rf $TMPDIR
142
143
  '
@@ -1,5 +1,5 @@
1
1
  module Docker
2
2
  module Spec
3
- VERSION = "0.22.0"
3
+ VERSION = "0.23.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.22.0
4
+ version: 0.23.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-29 00:00:00.000000000 Z
11
+ date: 2018-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  requirements: []
191
191
  rubyforge_project:
192
- rubygems_version: 2.7.7
192
+ rubygems_version: 2.7.8
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: A docker spec library to build and test docker containers