ecs_helper 0.0.35 → 0.0.36

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: 4b8c83b0859617581d45d79cb3a8ca067858266427fa3f1024f85aadb12640f5
4
- data.tar.gz: 1a0416def41b5089f63b2a7beb98d61ec22e30e04c570da57025752a291ad7d0
3
+ metadata.gz: 0d05f26ad2e1cfadd91160c700ecd339e3484fadf00e547d666c589eb74017cd
4
+ data.tar.gz: 3e69e86b2c95f659ca2638d874c13ab11130fda06fe31c95e66247fa662ea861
5
5
  SHA512:
6
- metadata.gz: 9682932c0088f66054ced4231eab331a8bc244a783db1e98958116dd6cebea145ea5fd24695e78d0b34a3f607831b6a42f6729e224252268d275b12199788282
7
- data.tar.gz: cb72b81d624af0d0cfa68d4b8ea30d73fc1818aaef39117ab6bd470395b1e1fddc5257a38d3192d2da8f97d755ba034061c105c451f7f85e8ac517e5e17c3e17
6
+ metadata.gz: bacf9314c83c7d19ddbdfd1571f467b4fcbebfdb4888c83fc4127cfd9eb9009262115e3828d98acb8711e58d364442c42975ed6566926c65d040f845521e3fcd
7
+ data.tar.gz: 98d256e205ba4ee2170edea30685f5e1b7bafa4d3627d488ff3e3d1dba036bc6fd6283e9e9e37599521223d225da7fcd77bf98305b0528fff2390d1f1e20ea97
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ecs_helper (0.0.35)
4
+ ecs_helper (0.0.36)
5
5
  aws-sdk-ecr (~> 1.42, >= 1.42)
6
6
  aws-sdk-ecrpublic (~> 1.3, >= 1.3)
7
7
  aws-sdk-ecs (~> 1.80, >= 1.80)
@@ -17,26 +17,26 @@ GEM
17
17
  public_suffix (>= 2.0.2, < 5.0)
18
18
  ast (2.4.2)
19
19
  awesome_print (1.9.2)
20
- aws-eventstream (1.2.0)
21
- aws-partitions (1.516.0)
22
- aws-sdk-core (3.121.1)
23
- aws-eventstream (~> 1, >= 1.0.2)
24
- aws-partitions (~> 1, >= 1.239.0)
25
- aws-sigv4 (~> 1.1)
26
- jmespath (~> 1.0)
27
- aws-sdk-ecr (1.47.0)
28
- aws-sdk-core (~> 3, >= 3.120.0)
20
+ aws-eventstream (1.3.0)
21
+ aws-partitions (1.920.0)
22
+ aws-sdk-core (3.193.0)
23
+ aws-eventstream (~> 1, >= 1.3.0)
24
+ aws-partitions (~> 1, >= 1.651.0)
25
+ aws-sigv4 (~> 1.8)
26
+ jmespath (~> 1, >= 1.6.1)
27
+ aws-sdk-ecr (1.70.0)
28
+ aws-sdk-core (~> 3, >= 3.193.0)
29
29
  aws-sigv4 (~> 1.1)
30
- aws-sdk-ecrpublic (1.6.0)
31
- aws-sdk-core (~> 3, >= 3.120.0)
30
+ aws-sdk-ecrpublic (1.27.0)
31
+ aws-sdk-core (~> 3, >= 3.193.0)
32
32
  aws-sigv4 (~> 1.1)
33
- aws-sdk-ecs (1.86.0)
34
- aws-sdk-core (~> 3, >= 3.120.0)
33
+ aws-sdk-ecs (1.146.0)
34
+ aws-sdk-core (~> 3, >= 3.193.0)
35
35
  aws-sigv4 (~> 1.1)
36
36
  aws-sdk-ssm (1.0.0)
37
37
  aws-sdk-core (~> 3)
38
38
  aws-sigv4 (~> 1.0)
39
- aws-sigv4 (1.4.0)
39
+ aws-sigv4 (1.8.0)
40
40
  aws-eventstream (~> 1, >= 1.0.2)
41
41
  bump (0.10.0)
42
42
  byebug (11.1.3)
@@ -46,8 +46,8 @@ GEM
46
46
  crack (0.4.5)
47
47
  rexml
48
48
  hashdiff (1.0.1)
49
- jmespath (1.4.0)
50
- json (2.6.0)
49
+ jmespath (1.6.2)
50
+ json (2.7.2)
51
51
  method_source (1.0.0)
52
52
  minitest (5.14.4)
53
53
  minitest-power_assert (0.3.1)
@@ -118,4 +118,4 @@ DEPENDENCIES
118
118
  webmock
119
119
 
120
120
  BUNDLED WITH
121
- 2.4.12
121
+ 2.2.27
@@ -11,9 +11,12 @@ class ECSHelper::Command::BuildAndPush < ECSHelper::Command::Base
11
11
  'Set image name, will be used to detect ecr repo where to push image, for example web/nginx/toolbox (required)') do |c|
12
12
  options[:image] = processEqual(c)
13
13
  end
14
- opts.on('-d VALUE', '--directory VALUE', "Set directory for dockerfile and context, default = './'") do |c|
14
+ opts.on('-d VALUE', '--directory VALUE', "Set directory for build context, default = './'") do |c|
15
15
  options[:directory] = processEqual(c)
16
16
  end
17
+ opts.on('-f VALUE', '--file VALUE', "Set path for Dockerfile, default = './Dockerfile'") do |c|
18
+ options[:file] = processEqual(c)
19
+ end
17
20
  opts.on('-p VALUE', '--project VALUE',
18
21
  "Set project name, if not specified will look at ENV['PROJECT'], will be used to detect cluster") do |p|
19
22
  options[:project] = processEqual(p)
@@ -63,7 +66,8 @@ class ECSHelper::Command::BuildAndPush < ECSHelper::Command::Base
63
66
  build_args = options[:build_args].map { |a| "--build-arg=#{a}" }
64
67
  cache_command = should_cache? ? ["--cache-from #{latest_tag}"] : []
65
68
  tags_command = ["--tag #{latest_tag} --tag #{version_tag}"]
66
- command = (build_command + build_args + cache_command + tags_command).join(' ')
69
+ file_command = ["--file #{file}"]
70
+ command = (build_command + file_command + build_args + cache_command + tags_command).join(' ')
67
71
  build_cmd = Terrapin::CommandLine.new(command)
68
72
 
69
73
  console "Building with two tags: #{latest_tag} & #{version_tag}"
@@ -85,6 +89,10 @@ class ECSHelper::Command::BuildAndPush < ECSHelper::Command::Base
85
89
  options[:directory] || './'
86
90
  end
87
91
 
92
+ def file
93
+ options[:file] || './Dockerfile'
94
+ end
95
+
88
96
  def latest_tag
89
97
  "#{repository}:latest"
90
98
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ECSHelper
4
- VERSION = '0.0.35'
4
+ VERSION = '0.0.36'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecs_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.35
4
+ version: 0.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Petrov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-17 00:00:00.000000000 Z
11
+ date: 2024-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -371,7 +371,7 @@ homepage: https://github.com/artempartos/ecs_helper
371
371
  licenses:
372
372
  - MIT
373
373
  metadata: {}
374
- post_install_message:
374
+ post_install_message:
375
375
  rdoc_options: []
376
376
  require_paths:
377
377
  - lib
@@ -386,8 +386,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
386
386
  - !ruby/object:Gem::Version
387
387
  version: '0'
388
388
  requirements: []
389
- rubygems_version: 3.4.12
390
- signing_key:
389
+ rubygems_version: 3.5.9
390
+ signing_key:
391
391
  specification_version: 4
392
392
  summary: ECSHelper
393
393
  test_files: []