conjur-debify 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conjur/debify/version.rb +1 -1
- data/lib/conjur/debify.rb +21 -7
- 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: 49e366180a3f8f376a01367a42a43442fe706a16
|
4
|
+
data.tar.gz: dbd842630e1e51e96bef593f4653562324e68ad7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6180c9647d0fc7af44ef3996af13ae1defd604fa4cf6ea733b1bd6ac09fcd85a28381d1f7b72d12bda22b7d16ec1eb9346581807b9ce7e049d1e51754ce625a
|
7
|
+
data.tar.gz: c0641fa9894e3acf5adad1ed702b5e4ad5bfdc959763506f83260811037bb7f67d826786c1348c85b61fc8248b973c4341efb6fb2d65f5b8d4bb2c14738dfb15
|
data/lib/conjur/debify.rb
CHANGED
@@ -270,23 +270,37 @@ command "test" do |c|
|
|
270
270
|
end
|
271
271
|
end
|
272
272
|
|
273
|
+
def command container, *args
|
274
|
+
stdout, stderr, exitcode = container.exec args, &DebugMixin::DOCKER
|
275
|
+
exit_now! "Command failed : #{args.join(' ')}", exitcode unless exitcode == 0
|
276
|
+
end
|
277
|
+
|
273
278
|
begin
|
274
279
|
DebugMixin.debug_write "Testing #{project_name} in container #{container.id}\n"
|
280
|
+
|
275
281
|
spawn("docker logs -f #{container.id}", [ :out, :err ] => $stderr).tap do |pid|
|
276
282
|
Process.detach pid
|
277
283
|
end
|
278
284
|
container.start
|
285
|
+
|
286
|
+
DebugMixin.debug_write "Stopping conjur\n"
|
287
|
+
|
288
|
+
container.exec [ "sv", "stop", "conjur" ], &DebugMixin::DOCKER
|
279
289
|
|
280
|
-
DebugMixin.debug_write "
|
281
|
-
|
290
|
+
DebugMixin.debug_write "Purging source install of #{project_name}\n"
|
291
|
+
|
292
|
+
command container, "rm", "-rf", "/opt/conjur/#{project_name}"
|
293
|
+
command container, "rm", "-f", "/opt/conjur/etc/#{project_name}.conf"
|
294
|
+
command container, "dpkg", "-P", "conjur-#{project_name}"
|
282
295
|
|
283
296
|
DebugMixin.debug_write "Installing #{project_name}\n"
|
284
297
|
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
298
|
+
command container, "dpkg", "-i", "/src/#{project_name}/conjur-#{project_name}_latest_amd64.deb"
|
299
|
+
command container, "/opt/conjur/evoke/bin/test-install", project_name
|
300
|
+
|
301
|
+
DebugMixin.debug_write "Starting conjur\n"
|
302
|
+
|
303
|
+
command container, "sv", "start", "conjur"
|
290
304
|
wait_for_conjur appliance_image, container
|
291
305
|
|
292
306
|
if configure_script
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjur-debify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gilpin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|