docker-spec 0.22.0 → 0.23.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 -6
- data/lib/docker/spec/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0aabf1804ec4cf0e9ed504ce8fcad064d96b431d37201c78d4e4aa982a5be031
|
4
|
+
data.tar.gz: 24c5d14f51a0b391605f0946701ed6c6878356b8f32e03a873f6134246cc4e40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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
|
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
|
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
|
'
|
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.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
|
+
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.
|
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
|