dapp 0.33.16 → 0.34.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/dapp +1 -23
- data/lib/dapp/dimg/build/stage/base.rb +1 -1
- data/lib/dapp/dimg/dapp/command/cleanup_repo.rb +8 -14
- data/lib/dapp/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: e0a8968d5231c2d82c357d03c7a211bad9f8d67e0c9e4a32c503e5dffabe4547
|
4
|
+
data.tar.gz: cf04012f24a2fa85c636b4179e4df6662db85505e7c8b075c7a17702d1ae8229
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7417bf6f91c6b2b3f3b402e484a773d6ad9d286045951aa66ba2f98cb16b0f5ea71af505e6ae6c8568270b0e9d3351005ddc55c9906b6106949f4fab502ca13f
|
7
|
+
data.tar.gz: cee7bd6f30ad9e50778362c3db5f1777b4edf959bf8d6f6918284d02b06e85da6f3bce38fe8267a1cae751d30f8fa16650d41c1370e9a7dbb4db478268484004
|
data/bin/dapp
CHANGED
@@ -74,29 +74,7 @@ set_gitlab_cancel_handler if ENV["GITLAB_CI"]
|
|
74
74
|
begin
|
75
75
|
begin
|
76
76
|
begin
|
77
|
-
|
78
|
-
Dapp::CLI.new.run
|
79
|
-
ensure
|
80
|
-
if Time.now.to_date < Date.parse("2019-11-01")
|
81
|
-
STDERR.puts
|
82
|
-
STDERR.puts ::Paint["###################################################################", :red, :bold]
|
83
|
-
STDERR.puts ::Paint["### DEPRECATION WARNING! ###", :red, :bold]
|
84
|
-
STDERR.puts ::Paint["### Dapp will be deprecated for use starting with 01.11.2019! ###", :red, :bold]
|
85
|
-
STDERR.puts ::Paint["### Please port your project to werf: ###", :red, :bold]
|
86
|
-
STDERR.puts ::Paint["### https://werf.io ###", :red, :bold]
|
87
|
-
STDERR.puts ::Paint["###################################################################", :red, :bold]
|
88
|
-
STDERR.puts
|
89
|
-
else
|
90
|
-
STDERR.puts
|
91
|
-
STDERR.puts ::Paint["######################################################################", :red, :bold]
|
92
|
-
STDERR.puts ::Paint["### DEPRECATION WARNING! ###", :red, :bold]
|
93
|
-
STDERR.puts ::Paint["### Dapp is deprecated for use and will not receive any support! ###", :red, :bold]
|
94
|
-
STDERR.puts ::Paint["### Please port your project to werf: ###", :red, :bold]
|
95
|
-
STDERR.puts ::Paint["### https://werf.io ###", :red, :bold]
|
96
|
-
STDERR.puts ::Paint["######################################################################", :red, :bold]
|
97
|
-
STDERR.puts
|
98
|
-
end
|
99
|
-
end
|
77
|
+
Dapp::CLI.new.run
|
100
78
|
rescue Dapp::Error::Base => e
|
101
79
|
unless (message = Dapp::Helper::NetStatus.before_error_message(e)).empty?
|
102
80
|
$stderr.puts(message)
|
@@ -329,7 +329,7 @@ module Dapp
|
|
329
329
|
|
330
330
|
def should_be_not_present?
|
331
331
|
return false if next_stage.nil?
|
332
|
-
!current_or_related_image_should_be_untagged? && (next_stage.image.tagged?
|
332
|
+
!current_or_related_image_should_be_untagged? && (next_stage.image.tagged? || next_stage.should_be_not_present?)
|
333
333
|
end
|
334
334
|
|
335
335
|
def image_name
|
@@ -225,65 +225,59 @@ module Dapp
|
|
225
225
|
# pod items[] spec containers[] image
|
226
226
|
def pod_images(client)
|
227
227
|
client.pod_list['items'].map do |item|
|
228
|
-
|
228
|
+
item['spec']['containers'].map{ |cont| cont['image'] }
|
229
229
|
end
|
230
230
|
end
|
231
231
|
|
232
232
|
# cronjob items[] spec jobTemplate spec template spec containers[] image
|
233
233
|
def cronjob_images(client)
|
234
234
|
client.cronjob_list['items'].map do |item|
|
235
|
-
|
235
|
+
item['spec']['jobTemplate']['spec']['template']['spec']['containers'].map{ |cont| cont['image'] }
|
236
236
|
end
|
237
237
|
end
|
238
238
|
|
239
239
|
# daemonsets items[] spec template spec containers[] image
|
240
240
|
def daemonset_images(client)
|
241
241
|
client.daemonset_list['items'].map do |item|
|
242
|
-
|
242
|
+
item['spec']['template']['spec']['containers'].map{ |cont| cont['image'] }
|
243
243
|
end
|
244
244
|
end
|
245
245
|
|
246
246
|
# deployment items[] spec template spec containers[] image
|
247
247
|
def deployment_images(client)
|
248
248
|
client.deployment_list['items'].map do |item|
|
249
|
-
|
249
|
+
item['spec']['template']['spec']['containers'].map{ |cont| cont['image'] }
|
250
250
|
end
|
251
251
|
end
|
252
252
|
|
253
253
|
# job items[] spec template spec containers[] image
|
254
254
|
def job_images(client)
|
255
255
|
client.job_list['items'].map do |item|
|
256
|
-
|
256
|
+
item['spec']['template']['spec']['containers'].map{ |cont| cont['image'] }
|
257
257
|
end
|
258
258
|
end
|
259
259
|
|
260
260
|
# replicasets items[] spec template spec containers[] image
|
261
261
|
def replicaset_images(client)
|
262
262
|
client.replicaset_list['items'].map do |item|
|
263
|
-
|
263
|
+
item['spec']['template']['spec']['containers'].map{ |cont| cont['image'] }
|
264
264
|
end
|
265
265
|
end
|
266
266
|
|
267
267
|
# replicasets items[] spec template spec containers[] image
|
268
268
|
def statefulset_images(client)
|
269
269
|
client.statefulset_list['items'].map do |item|
|
270
|
-
|
270
|
+
item['spec']['template']['spec']['containers'].map{ |cont| cont['image'] }
|
271
271
|
end
|
272
272
|
end
|
273
273
|
|
274
274
|
# replicationcontroller items[] spec template spec containers[] image
|
275
275
|
def replicationcontroller_images(client)
|
276
276
|
client.replicationcontroller_list['items'].map do |item|
|
277
|
-
|
277
|
+
item['spec']['template']['spec']['containers'].map{ |cont| cont['image'] }
|
278
278
|
end
|
279
279
|
end
|
280
280
|
|
281
|
-
def images_from_pod_spec(pod_spec)
|
282
|
-
containers = Array(pod_spec['spec']['containers'])
|
283
|
-
initContainers = Array(pod_spec['spec']['initContainers'])
|
284
|
-
(containers + initContainers).map { |cont| cont['image'] }
|
285
|
-
end
|
286
|
-
|
287
281
|
def without_kube?
|
288
282
|
!!options[:without_kube]
|
289
283
|
end
|
data/lib/dapp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.34.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Stolyarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|
@@ -744,7 +744,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
744
744
|
version: 2.5.0
|
745
745
|
requirements: []
|
746
746
|
rubyforge_project:
|
747
|
-
rubygems_version: 2.7.
|
747
|
+
rubygems_version: 2.7.7
|
748
748
|
signing_key:
|
749
749
|
specification_version: 4
|
750
750
|
summary: Build docker packaged apps using chef or shell
|