dlss-capistrano-docker 1.1.1 → 1.3.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 +4 -4
- data/.circleci/config.yml +1 -1
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +51 -42
- data/README.md +6 -1
- data/dlss-capistrano-docker.gemspec +2 -2
- data/lib/dlss/docker/capistrano/tasks/ssh_check.rake +8 -0
- metadata +5 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 779d4b16996f563321acac177dc3019a32fe574a31b25cef16558aa9ffcdaa29
|
|
4
|
+
data.tar.gz: de43a3649f483b7978be23fcd09582dc4a42188f0c1db6a63992408b6b75e41e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e117b00b93df006b5bee79f0bd9554fd9a130f5dab90678d4089fbb834a39974595dd05cef27af91f53d6f933979283db7cb56a9bc38928b97900d102abbae46
|
|
7
|
+
data.tar.gz: 70a84ed3e24b14376e7774b0713b10776a2b9de1dd9c7fdc4045694c08feaf5120fa8edb17dfa43c53421a1f0562fd2715894b11ecdf0a70c44a14df43bac827
|
data/.circleci/config.yml
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
dlss-capistrano-docker (1.
|
|
4
|
+
dlss-capistrano-docker (1.3.0)
|
|
5
5
|
bcrypt_pbkdf
|
|
6
6
|
capistrano (~> 3.0)
|
|
7
7
|
capistrano-bundle_audit (>= 0.3.0)
|
|
@@ -12,18 +12,17 @@ PATH
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: https://rubygems.org/
|
|
14
14
|
specs:
|
|
15
|
-
airbrussh (1.
|
|
15
|
+
airbrussh (1.6.2)
|
|
16
16
|
sshkit (>= 1.6.1, != 1.7.0)
|
|
17
|
-
ast (2.4.
|
|
18
|
-
base64 (0.
|
|
19
|
-
bcrypt_pbkdf (1.1.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
bundler-audit (0.9.1)
|
|
23
|
-
bundler (>= 1.2.0, < 3)
|
|
17
|
+
ast (2.4.3)
|
|
18
|
+
base64 (0.3.0)
|
|
19
|
+
bcrypt_pbkdf (1.1.2)
|
|
20
|
+
bundler-audit (0.9.3)
|
|
21
|
+
bundler (>= 1.2.0)
|
|
24
22
|
thor (~> 1.0)
|
|
25
|
-
byebug (
|
|
26
|
-
|
|
23
|
+
byebug (13.0.0)
|
|
24
|
+
reline (>= 0.6.0)
|
|
25
|
+
capistrano (3.20.1)
|
|
27
26
|
airbrussh (>= 1.0.0)
|
|
28
27
|
i18n
|
|
29
28
|
rake (>= 10.0.0)
|
|
@@ -32,57 +31,67 @@ GEM
|
|
|
32
31
|
bundler-audit (~> 0.5)
|
|
33
32
|
capistrano (~> 3.0)
|
|
34
33
|
capistrano-bundler (>= 1.4)
|
|
35
|
-
capistrano-bundler (2.
|
|
34
|
+
capistrano-bundler (2.2.0)
|
|
36
35
|
capistrano (~> 3.1)
|
|
37
|
-
capistrano-one_time_key (0.
|
|
36
|
+
capistrano-one_time_key (0.3.0)
|
|
38
37
|
capistrano (~> 3.0)
|
|
39
38
|
capistrano-shared_configs (0.2.2)
|
|
40
|
-
concurrent-ruby (1.3.
|
|
41
|
-
ed25519 (1.
|
|
42
|
-
i18n (1.
|
|
39
|
+
concurrent-ruby (1.3.8)
|
|
40
|
+
ed25519 (1.4.0)
|
|
41
|
+
i18n (1.15.2)
|
|
43
42
|
concurrent-ruby (~> 1.0)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
io-console (0.9.4)
|
|
44
|
+
json (3.0.2)
|
|
45
|
+
language_server-protocol (3.17.0.6)
|
|
46
|
+
lint_roller (1.1.0)
|
|
47
|
+
logger (1.7.0)
|
|
48
|
+
net-scp (4.1.0)
|
|
47
49
|
net-ssh (>= 2.6.5, < 8.0.0)
|
|
48
50
|
net-sftp (4.0.0)
|
|
49
51
|
net-ssh (>= 5.0.0, < 8.0.0)
|
|
50
|
-
net-ssh (7.
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
net-ssh (7.3.6)
|
|
53
|
+
ostruct (0.6.3)
|
|
54
|
+
parallel (2.3.0)
|
|
55
|
+
parser (3.3.12.0)
|
|
53
56
|
ast (~> 2.4.1)
|
|
54
57
|
racc
|
|
55
|
-
|
|
58
|
+
prism (1.9.0)
|
|
59
|
+
racc (1.8.1)
|
|
56
60
|
rainbow (3.1.1)
|
|
57
|
-
rake (13.2
|
|
58
|
-
regexp_parser (2.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
rubocop (1.
|
|
62
|
-
json (
|
|
63
|
-
language_server-protocol (
|
|
64
|
-
|
|
61
|
+
rake (13.4.2)
|
|
62
|
+
regexp_parser (2.13.1)
|
|
63
|
+
reline (0.7.0)
|
|
64
|
+
io-console (~> 0.5)
|
|
65
|
+
rubocop (1.92.0)
|
|
66
|
+
json (>= 2.3)
|
|
67
|
+
language_server-protocol (~> 3.17.0.2)
|
|
68
|
+
lint_roller (~> 1.1.0)
|
|
69
|
+
parallel (>= 1.10)
|
|
65
70
|
parser (>= 3.3.0.2)
|
|
66
71
|
rainbow (>= 2.2.2, < 4.0)
|
|
67
|
-
regexp_parser (>=
|
|
68
|
-
|
|
69
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
72
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
73
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
70
74
|
ruby-progressbar (~> 1.7)
|
|
71
|
-
unicode-display_width (>= 2.4.0, <
|
|
72
|
-
rubocop-ast (1.
|
|
73
|
-
parser (>= 3.3.
|
|
75
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
76
|
+
rubocop-ast (1.50.0)
|
|
77
|
+
parser (>= 3.3.7.2)
|
|
78
|
+
prism (~> 1.7)
|
|
74
79
|
ruby-progressbar (1.13.0)
|
|
75
|
-
sshkit (1.
|
|
80
|
+
sshkit (1.25.1)
|
|
76
81
|
base64
|
|
82
|
+
logger
|
|
77
83
|
net-scp (>= 1.1.2)
|
|
78
84
|
net-sftp (>= 2.1.2)
|
|
79
85
|
net-ssh (>= 2.8.0)
|
|
80
|
-
|
|
81
|
-
thor (1.
|
|
82
|
-
unicode-display_width (
|
|
86
|
+
ostruct
|
|
87
|
+
thor (1.5.0)
|
|
88
|
+
unicode-display_width (3.3.0)
|
|
89
|
+
unicode-emoji (~> 4.3)
|
|
90
|
+
unicode-emoji (4.3.0)
|
|
83
91
|
|
|
84
92
|
PLATFORMS
|
|
85
93
|
arm64-darwin-23
|
|
94
|
+
arm64-darwin-25
|
|
86
95
|
x86_64-darwin-21
|
|
87
96
|
x86_64-linux
|
|
88
97
|
|
|
@@ -94,4 +103,4 @@ DEPENDENCIES
|
|
|
94
103
|
rubocop (~> 1.0)
|
|
95
104
|
|
|
96
105
|
BUNDLED WITH
|
|
97
|
-
|
|
106
|
+
4.0.22
|
data/README.md
CHANGED
|
@@ -8,8 +8,13 @@ This gem provides Capistrano Docker deployment tasks used by Stanford Libraries'
|
|
|
8
8
|
|
|
9
9
|
It requires that the services to be run on a server be specified by a docker compose configuration file.
|
|
10
10
|
|
|
11
|
+
## Development
|
|
12
|
+
|
|
13
|
+
Use Ruby 4.0.7 for development and testing.
|
|
14
|
+
|
|
11
15
|
## Included Tasks
|
|
12
16
|
* `ssh`: establishes an SSH connection to the host running in environment, and changes into the current deployment directory.
|
|
17
|
+
* `ssh_check`: establishes an SSH connection to all app servers running prints environment information to confirm the connection was made. (This is used by sdr-deploy to check SSH connections can be made in bulk before proceeding with a mass deploy.)
|
|
13
18
|
* `honeybadger:notify`: notifies Honeybadger of deploy using curl (thus, ruby is not required on host).
|
|
14
19
|
* `docker:login`: log into Docker Hub. Logging in is required to avoid strict image download limits.
|
|
15
20
|
* `docker:logout`: log out of Docker Hub.
|
|
@@ -71,7 +76,7 @@ require 'dlss/capistrano'
|
|
|
71
76
|
* Add `set :job_template, nil` to execute with sh instead of bash.
|
|
72
77
|
|
|
73
78
|
### `Dockerfile`
|
|
74
|
-
* When possible, base the image on Alpine (e.g., `FROM ruby:
|
|
79
|
+
* When possible, base the image on Alpine (e.g., `FROM ruby:4.0.7-alpine`).
|
|
75
80
|
* Processes should run as the application user (e.g., `h2`) not root, with user id and group id set to match the server.
|
|
76
81
|
* If using Whenever, install Supercronic (which does not have to run as root) and write the crontab file during the build with `RUN sh -c 'bundle exec whenever . | tee -a config/crontab'`.
|
|
77
82
|
* When possible, write to both a log file and stdout.
|
|
@@ -4,7 +4,7 @@ $:.unshift lib unless $:.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = "dlss-capistrano-docker"
|
|
7
|
-
s.version = '1.
|
|
7
|
+
s.version = '1.3.0'
|
|
8
8
|
|
|
9
9
|
s.platform = Gem::Platform::RUBY
|
|
10
10
|
s.authors = ['Justin Littman']
|
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
|
13
13
|
s.homepage = 'https://github.com/sul-dlss/dlss-capistrano-docker'
|
|
14
14
|
s.license = "Apache-2.0"
|
|
15
15
|
|
|
16
|
-
s.required_ruby_version = '>= 3.0', '<
|
|
16
|
+
s.required_ruby_version = '>= 3.0', '< 5'
|
|
17
17
|
|
|
18
18
|
# All dependencies are runtime dependencies, since this gem's "runtime" is
|
|
19
19
|
# the dependent gem's development-time.
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dlss-capistrano-docker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Littman
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: capistrano
|
|
@@ -150,7 +149,6 @@ dependencies:
|
|
|
150
149
|
- - "~>"
|
|
151
150
|
- !ruby/object:Gem::Version
|
|
152
151
|
version: '1.0'
|
|
153
|
-
description:
|
|
154
152
|
email:
|
|
155
153
|
- justinlittman@stanford.edu
|
|
156
154
|
executables: []
|
|
@@ -171,12 +169,12 @@ files:
|
|
|
171
169
|
- lib/dlss/docker/capistrano/tasks/honeybadger.rake
|
|
172
170
|
- lib/dlss/docker/capistrano/tasks/shared_configs.rake
|
|
173
171
|
- lib/dlss/docker/capistrano/tasks/ssh.rake
|
|
172
|
+
- lib/dlss/docker/capistrano/tasks/ssh_check.rake
|
|
174
173
|
homepage: https://github.com/sul-dlss/dlss-capistrano-docker
|
|
175
174
|
licenses:
|
|
176
175
|
- Apache-2.0
|
|
177
176
|
metadata:
|
|
178
177
|
rubygems_mfa_required: 'true'
|
|
179
|
-
post_install_message:
|
|
180
178
|
rdoc_options: []
|
|
181
179
|
require_paths:
|
|
182
180
|
- lib
|
|
@@ -187,15 +185,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
187
185
|
version: '3.0'
|
|
188
186
|
- - "<"
|
|
189
187
|
- !ruby/object:Gem::Version
|
|
190
|
-
version: '
|
|
188
|
+
version: '5'
|
|
191
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
190
|
requirements:
|
|
193
191
|
- - ">="
|
|
194
192
|
- !ruby/object:Gem::Version
|
|
195
193
|
version: '0'
|
|
196
194
|
requirements: []
|
|
197
|
-
rubygems_version:
|
|
198
|
-
signing_key:
|
|
195
|
+
rubygems_version: 4.0.22
|
|
199
196
|
specification_version: 4
|
|
200
197
|
summary: Capistrano recipes for use in SUL/DLSS projects for docker deployment
|
|
201
198
|
test_files: []
|