pdqtest 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pdqtest/docker.rb +12 -0
- data/lib/pdqtest/version.rb +1 -1
- data/res/skeleton/hiera.yaml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e25661660c62d88a32a857323cbf32a089addfda
|
4
|
+
data.tar.gz: fdf28862849ba4908d760ad7b287bd7cc928d445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6ef89914b36b871fe83c949170caaf6b852407b5f4854902656f5199350136965941a93cac5bd1fb41197e61c8ffb6d1eefd26b176373b7e8eaf5370f6365ec
|
7
|
+
data.tar.gz: 578dbaf2fb74bcc7183e0b61d501671eefae2b08ce4721a7a659183429e6e1eccf8ccb5442750f6c8f05c75544e6af2421ad0bedfa86ce3261dabe13d6a2c2c9
|
data/lib/pdqtest/docker.rb
CHANGED
@@ -22,6 +22,17 @@ module PDQTest
|
|
22
22
|
hiera_yaml_host = File.join(pwd, HIERA_YAML_HOST)
|
23
23
|
hiera_dir = File.join(pwd, HIERA_DIR)
|
24
24
|
|
25
|
+
# security options seem required on OSX to allow SYS_ADMIN capability to
|
26
|
+
# work - without this container starts fine with no errors but the CAP is
|
27
|
+
# missing from the inspect output and all systemd commands fail with errors
|
28
|
+
# about dbus
|
29
|
+
security_opt =
|
30
|
+
if (/darwin/ =~ RUBY_PLATFORM) != nil
|
31
|
+
["seccomp:unconfined"]
|
32
|
+
else
|
33
|
+
[]
|
34
|
+
end
|
35
|
+
|
25
36
|
# hiera.yaml *must* exist on the host or we will get errors from Docker
|
26
37
|
if ! File.exists?(hiera_yaml_host)
|
27
38
|
File.write(hiera_yaml_host, '# hiera configuration for testing')
|
@@ -36,6 +47,7 @@ module PDQTest
|
|
36
47
|
'/sys/fs/cgroup' => {'/sys/fs/cgroup' => 'ro'},
|
37
48
|
},
|
38
49
|
'HostConfig' => {
|
50
|
+
"SecurityOpt" => security_opt,
|
39
51
|
"Binds": [
|
40
52
|
"/sys/fs/cgroup:/sys/fs/cgroup:ro",
|
41
53
|
"#{pwd}:/cut:rw", # DEPRECATED -FOR REMOVAL
|
data/lib/pdqtest/version.rb
CHANGED
data/res/skeleton/hiera.yaml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdqtest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoff Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|