moby-derp 0.7.1 → 0.7.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 +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +12 -0
- data/README.md +1 -1
- data/example.yml +2 -2
- data/lib/moby_derp/container_config.rb +4 -0
- data/lib/moby_derp/freedom_patches/docker/credential.rb +1 -1
- data/lib/moby_derp/pod.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1d04c23ce729679e9e1cd34fa7fbb63dac8672a2212cbed442cdaef698ac20e
|
|
4
|
+
data.tar.gz: f7cfa0d0fa9f21e6f02766669cd2a763614828a75e60ba6b35146c9c2b3d5877
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 877ef1db2ccb0f5b32cdb2bca422edc2bb3995fa650d65fad0fa581fc89c5ae4b3873759f2da706700c0a3a2b8b8392cc315659d4cf58b480efd5fcc1e91fc18
|
|
7
|
+
data.tar.gz: bf4261f7c31c01628df29e43cc42b84346525802225999e790e0268c6246b2730f9716dc087c8270cde96a75730a345276cb176e78a5d38603517532fd9c07ee
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
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.
|
|
87
|
+
`/etc/moby-derp.conf`.
|
|
88
88
|
|
|
89
89
|
Its structure is quite simple. A full example looks like this:
|
|
90
90
|
|
data/example.yml
CHANGED
|
@@ -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`.
|
|
@@ -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 =
|
|
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) }
|
data/lib/moby_derp/pod.rb
CHANGED
|
@@ -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
|
|
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.
|
|
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-
|
|
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
|