moby-derp 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4f3f67740bc9579d1b4e2af6e95801e2f019f65b2fddcc495e5ef1c24084565
4
- data.tar.gz: a78bf5f24219288581f7bc24137b372e2c9738a9ba2245266b176c800e8db0f8
3
+ metadata.gz: e1d04c23ce729679e9e1cd34fa7fbb63dac8672a2212cbed442cdaef698ac20e
4
+ data.tar.gz: f7cfa0d0fa9f21e6f02766669cd2a763614828a75e60ba6b35146c9c2b3d5877
5
5
  SHA512:
6
- metadata.gz: 724548d882433981999f8c6ba64ba48b3e227de6697a23fb2bd01819acf50a711fd880f685825099e25864aad0736fdc55cd7098ed4618eae83a38bf6a63d472
7
- data.tar.gz: be5f791cc9b56efb0be63fc56bd6d788ad4d6617aed29360452a8c5c44d7d83228734edb3c0ad0c8bbbfda58c680e71bf65503ced36db2547876efa5e95bff93
6
+ metadata.gz: 877ef1db2ccb0f5b32cdb2bca422edc2bb3995fa650d65fad0fa581fc89c5ae4b3873759f2da706700c0a3a2b8b8392cc315659d4cf58b480efd5fcc1e91fc18
7
+ data.tar.gz: bf4261f7c31c01628df29e43cc42b84346525802225999e790e0268c6246b2730f9716dc087c8270cde96a75730a345276cb176e78a5d38603517532fd9c07ee
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ Gemfile.lock
4
4
  /.yardoc
5
5
  /.bundle
6
6
  /coverage
7
+ /test
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+
3
+ cache: bundler
4
+
5
+ rvm:
6
+ - 2.6
7
+ - 2.5
8
+ - 2.4
9
+ - 2.3
10
+
11
+ gemfile:
12
+ - Gemfile
data/README.md CHANGED
@@ -84,7 +84,7 @@ removed. This is used as the prefix for the name of all containers in the pod.
84
84
  Some aspects of `moby-derp`'s operation are security-sensitive, and thus shouldn't
85
85
  be able to be modified by the ordinary user. There is a
86
86
  system-wide configuration file for this purpose, by default located at
87
- `/etc/moby-derp.yml`.
87
+ `/etc/moby-derp.conf`.
88
88
 
89
89
  Its structure is quite simple. A full example looks like this:
90
90
 
@@ -322,8 +322,8 @@ expose:
322
322
  # in the `moby-derp` README).
323
323
  #
324
324
  publish:
325
- - :80
326
- - :1234-1237
325
+ - ":80"
326
+ - ":1234-1237"
327
327
 
328
328
  # If you have a burning desire to have all exposed ports automatically published
329
329
  # to (not-so-)randomly chosen ephemeral ports, you can set this option to `true`.
@@ -61,6 +61,10 @@ module MobyDerp
61
61
  raise ConfigurationError,
62
62
  "image is not a valid image reference"
63
63
  end
64
+
65
+ if @image.match(Docker::Image::IMAGE_REFERENCE)[9].nil?
66
+ @image += ":latest"
67
+ end
64
68
  end
65
69
 
66
70
  def validate_update_image
@@ -29,7 +29,7 @@ module Docker
29
29
  cred = hunt_for_image_domain_cred(ref, docker_config.fetch("auths", {}))
30
30
 
31
31
  if cred
32
- user, pass = JSON.parse(cred.fetch("auth", "null"))&.unpack("m")&.first&.split(":", 2)
32
+ user, pass = cred["auth"]&.unpack("m")&.first&.split(":", 2)
33
33
 
34
34
  if user && pass
35
35
  { username: user, password: pass, serveraddress: image_domain(ref) }
@@ -25,7 +25,7 @@ module MobyDerp
25
25
 
26
26
  if c.info["Labels"]["org.hezmatt.moby-derp.pod-name"] == name &&
27
27
  !c.info["Labels"]["org.hezmatt.moby-derp.root-container-id"].nil? &&
28
- !desired_container_names.include?(c_name.split(".", 2).last)
28
+ !desired_container_names.include?(c_name)
29
29
  @logger.info(logloc) { "Removing stale container #{c_name}" }
30
30
  c.stop
31
31
  c.delete
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moby-derp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-01 00:00:00.000000000 Z
11
+ date: 2020-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api
@@ -187,6 +187,7 @@ extensions: []
187
187
  extra_rdoc_files: []
188
188
  files:
189
189
  - ".gitignore"
190
+ - ".travis.yml"
190
191
  - ".yardopts"
191
192
  - CODE_OF_CONDUCT.md
192
193
  - CONTRIBUTING.md