linecook-gem 0.6.3 → 0.6.4

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
  SHA1:
3
- metadata.gz: c105d467883a499c27b14fb3d240fd90e13a0b51
4
- data.tar.gz: 5949428951d8e72e4d3e5a99af72213ae158b397
3
+ metadata.gz: 73330686c79f95ca6d6cf2570ed0a898be4bac51
4
+ data.tar.gz: 80d8555e0fa83e791969e042eddc3e28c23c0b00
5
5
  SHA512:
6
- metadata.gz: aaa7b9a7349d81458efe3994f478bb6d18e48afd484b7f101886110fec719b4bb66b01b471f89e9dc68141756aa14b8705b74e21d79f5819ac4550c57e5ce587
7
- data.tar.gz: 2ee6781ed13d0a6270f240806be3cf9cf8fffcf4fbe1c7131a58ca7ac190d12b9ccc42173fa08744e5bb8f5b1722f813e39f1bbf4bb0eedd1c419e1167184410
6
+ metadata.gz: a8517ca41fd6aa2aad88e5e0e6858a853c911c526720e8afbf633bdebde976af947107373f9094e54c3d90ded70613faa28d9cd4b1f0435364639f809746524a
7
+ data.tar.gz: 7ddf0bf392f32bb0676ecde200312803d4430557b8e937b6d974c12eb5307d02001ba2ddf06135b837b641fb689aaa918cbbcdf4bcc77ada20eda510481f0d0e
@@ -227,7 +227,8 @@ eos
227
227
  extend self
228
228
  DEFAULT_LXC_CONFIG = {
229
229
  include: '/usr/share/lxc/config/ubuntu.common.conf',
230
- aa_profile: 'lxc-container-default-with-nesting',
230
+ #aa_profile: 'lxc-container-default-with-nesting',
231
+ aa_profile: 'unconfined',
231
232
  arch: 'x86.64',
232
233
  utsname: 'linecook',
233
234
  rootfs: '/u/lxc/linecook/rootfs',
@@ -29,11 +29,10 @@ module Linecook
29
29
  def decrypt_file(source, dest: nil)
30
30
  dest ||= "/tmp/#{File.basename(source)}-decrypted"
31
31
  if @remote
32
- Tempfile.open('key') do |key|
33
- @remote.upload(decryptor_script(source, dest), key.path)
34
- @remote.run("bash #{key.path}")
35
- @remote.run("rm #{key.path}")
36
- end
32
+ script = "/tmp/decrypt-#{SecureRandom.hex(4)}"
33
+ @remote.upload(decryptor_script(source, dest), script)
34
+ @remote.run("bash #{script}")
35
+ @remote.run("rm #{script}")
37
36
  else
38
37
  File.write(dest, box.decrypt(IO.binread(source)))
39
38
  end
@@ -174,6 +174,8 @@ module Linecook
174
174
  resp = client.register_image(**options)
175
175
  @ami_id = resp.image_id
176
176
 
177
+ puts "Waiting for #{@ami_id} to become available"
178
+
177
179
  wait_for_state('available', 300) do
178
180
  client.describe_images(image_ids: [@ami_id]).images.first.state
179
181
  end
@@ -1,3 +1,3 @@
1
1
  module Linecook
2
- VERSION = '0.6.3'
2
+ VERSION = '0.6.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linecook-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel