jets_gem_layer 1.0.3 → 1.0.4
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 +4 -4
- data/README.md +15 -7
- data/lib/jets_gem_layer/task_helper.rb +3 -0
- data/lib/jets_gem_layer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4b51be7125e85344e0542ec777f71280613e6a42c660eba8209ba4d34d56234
|
4
|
+
data.tar.gz: a5503c800269ecae3de3555173b3c2d71e8194d1150b98824c55752b9aa5d530
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a12f3bdb0e1b7a0f4a346d753fd15f2d8a4f6ef83355bed5841c164128b4386860d82888b99ff6816689a67f815e7c1769d2b5acc9037a25ca5697ab71504016
|
7
|
+
data.tar.gz: 481d2f2352261090660f956732ab5ec707d42b81fca0edfc7161f0cbeaacd440aeda85c729d805c8c32b664946e0484d1c76e45919641b953677afbbc44200c8
|
data/README.md
CHANGED
@@ -26,13 +26,22 @@ config.pro.disable = true
|
|
26
26
|
is to add the included helper to your environment configuration.
|
27
27
|
|
28
28
|
```ruby
|
29
|
-
# config/
|
29
|
+
# config/application.rb
|
30
|
+
|
31
|
+
require 'jets_gem_layer'
|
30
32
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
#
|
35
|
-
|
33
|
+
module CrmBroker
|
34
|
+
class Application < Jets::Application
|
35
|
+
|
36
|
+
# JetsGemLayer.arn will resolve to the latest version of the published Layer, also looking for a correct hash in the
|
37
|
+
# layer description indicating the current Gemfile.lock and Gemfile are supported.
|
38
|
+
# If a suitable layer is not found, the gem will log an error and resolve to 'error-fetching-gem-layer-arn' which will allow your
|
39
|
+
# application to run locally but hopefully prevent an invalid deployment
|
40
|
+
config.lambda.layers = [JetsGemLayer.arn]
|
41
|
+
|
42
|
+
# ...
|
43
|
+
end
|
44
|
+
end
|
36
45
|
```
|
37
46
|
|
38
47
|
3. Add this gem to your Gemfile:
|
@@ -46,7 +55,6 @@ gem 'jets_gem_layer'
|
|
46
55
|
# Rakefile
|
47
56
|
|
48
57
|
require 'jets'
|
49
|
-
require 'jets_gem_layer'
|
50
58
|
require_relative 'config/application'
|
51
59
|
|
52
60
|
Jets.application.load_tasks
|
@@ -101,6 +101,9 @@ module JetsGemLayer
|
|
101
101
|
def build_layer
|
102
102
|
FileUtils.mkdir_p(inputs_dir)
|
103
103
|
FileUtils.cp(INPUT_FILES.existing, inputs_dir)
|
104
|
+
puts 'Running docker to build layer'
|
105
|
+
command = docker_run_cmd
|
106
|
+
puts command.join(' ')
|
104
107
|
system(*docker_run_cmd) or raise $CHILD_STATUS.to_s
|
105
108
|
zip_layer
|
106
109
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jets_gem_layer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DocGo Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jets
|