shippy 0.1.6 → 0.2.2

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: e6045bbdd9f3d3ec7b83b88dc28809c7d3f5391c421b1d8972793e468eb23486
4
- data.tar.gz: 63a4e730a4a4637b5d8f4eb13be9330ec6058f622ea17d4bc4cea6e98be26355
3
+ metadata.gz: d6b3f55a1265237768a447d1a0fc8004ce36d4251a29577c04ea4f612e39fc83
4
+ data.tar.gz: 4687902298d33cd6ed0fc4eb14bb4925b3fda6652af086225ff6eb5114464a0e
5
5
  SHA512:
6
- metadata.gz: 1fbee88e84f54ad80aa02e4337586a0f5cba380ec20185e8b3fa45bbcb8ad927accef5e03fdda69b2d61a096d62d544100a51faef78e42ac991e81de217efba8
7
- data.tar.gz: bef7b11ba7a7219c229f5da67d3caad8a66405514ed62d5c453051740aa9defe4875597866288b4ab7b7cc6bbd4829bc548b8518d53df863acc16ace04b8649d
6
+ metadata.gz: 9252cf785d5e2ead3a4dfda960139b541b90b10f5aa3aa785ad53493c2e2b7964bf6bd59c4229975505c63e230098104ff260660fdb6010d54c698fb7150a591
7
+ data.tar.gz: 5696767dae26cca80ef8203bb0e6395e9f2baa9618b33b49975318863dbd203277bd2e9591c9f9ee3855ca4facaa9d4359f87f7d53a5725113ac6f85cc29df17
@@ -28,7 +28,7 @@ class Shippy::Cli::App < Shippy::Cli::Base
28
28
  say "Pulling images for #{app_name} on #{SHIPPY.host}...", :magenta
29
29
 
30
30
  within_app do
31
- execute :docker_compose, "pull"
31
+ execute :docker, "compose", "pull"
32
32
  end
33
33
  end
34
34
 
@@ -37,7 +37,7 @@ class Shippy::Cli::App < Shippy::Cli::Base
37
37
  say "Starting #{app_name} on #{SHIPPY.host}...", :magenta
38
38
 
39
39
  within_app do
40
- execute :docker_compose, "up", "-d", SHIPPY.app&.deploy_flags
40
+ execute :docker, "compose", "up", "-d", SHIPPY.app&.deploy_flags
41
41
  end
42
42
  end
43
43
 
@@ -48,7 +48,7 @@ class Shippy::Cli::App < Shippy::Cli::Base
48
48
  restart_options = options[:service] ? ["--", options[:service]] : []
49
49
 
50
50
  within_app do
51
- execute :docker_compose, "restart", *restart_options
51
+ execute :docker, "compose", "restart", *restart_options
52
52
  end
53
53
  end
54
54
 
@@ -57,14 +57,14 @@ class Shippy::Cli::App < Shippy::Cli::Base
57
57
  say "Stopping #{app_name} on #{SHIPPY.host}...", :magenta
58
58
 
59
59
  within_app do
60
- execute :docker_compose, "down", "--remove-orphans"
60
+ execute :docker, "compose", "down", "--remove-orphans"
61
61
  end
62
62
  end
63
63
 
64
64
  desc "logs", "Show app logs"
65
65
  def logs
66
66
  within_app do
67
- puts capture(:docker_compose, "logs", verbosity: Logger::INFO)
67
+ puts capture(:docker, "compose", "logs", verbosity: Logger::INFO)
68
68
  end
69
69
  end
70
70
 
@@ -73,7 +73,7 @@ class Shippy::Cli::App < Shippy::Cli::Base
73
73
  say "Status for #{app_name} on #{SHIPPY.host}...", :magenta
74
74
 
75
75
  within_app do
76
- puts capture(:docker_compose, "ps", "-a")
76
+ puts capture(:docker, "compose", "ps", "-a")
77
77
  end
78
78
  end
79
79
 
@@ -114,7 +114,7 @@ class Shippy::Cli::App < Shippy::Cli::Base
114
114
  on(SHIPPY.host) do
115
115
  if test("[ -f #{backup_path.join("docker-compose.yml")} ]")
116
116
  within backup_path do
117
- execute :docker_compose, "down", "--remove-orphans"
117
+ execute :docker, "compose", "down", "--remove-orphans"
118
118
  end
119
119
  end
120
120
  end
@@ -171,7 +171,7 @@ class Shippy::Cli::App < Shippy::Cli::Base
171
171
 
172
172
  within_app do
173
173
  SHIPPY.app.each_hook do |service, options, command|
174
- execute :docker_compose, "run", "--rm", options, service, command
174
+ execute :docker, "compose", "run", "--rm", options, service, command
175
175
  end
176
176
  end
177
177
  end
@@ -27,7 +27,6 @@ module Shippy
27
27
 
28
28
  def to_hash
29
29
  data = {}
30
- data[:version] = "3"
31
30
  data[:services] = services.map(&:to_hash).reduce(:merge)
32
31
  data[:volumes] = volumes_hash.presence
33
32
  data[:networks] = networks_hash.presence
@@ -59,6 +59,7 @@ module Shippy
59
59
  def use_traefik(name:, alt: nil, port: nil, healthcheck: false)
60
60
  labels do
61
61
  all_labels = ["traefik.enable=true"]
62
+ all_labels += ["traefik.docker.network=lan_access"]
62
63
  all_labels += build_traefik_labels(name: name, port: port)
63
64
  all_labels += build_traefik_labels(name: alt, port: port) if alt
64
65
  all_labels += build_ihxator_labels(service: "https://#{name}.#{wildcard_domain}") if healthcheck
@@ -1,3 +1,3 @@
1
1
  module Shippy
2
- VERSION = "0.1.6"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shippy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marius Bobin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-21 00:00:00.000000000 Z
11
+ date: 2025-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  - !ruby/object:Gem::Version
203
203
  version: '0'
204
204
  requirements: []
205
- rubygems_version: 3.4.6
205
+ rubygems_version: 3.5.21
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Deployment wrapper around docker-compose and SSH Kit