ood_packaging 0.5.0 → 0.5.1

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
  SHA256:
3
- metadata.gz: 6ca45c5fbd72d84605c193e4fbb0f24280d4ccb727f811c603dd5681024f2598
4
- data.tar.gz: ffd7017ffa3ff78b14fc8336ed59419b989913b78d33630dce5e58f96354f0c7
3
+ metadata.gz: ae11128e965fd3354104bd152a71bf81df23ae7e9af3a2ab55d28fd3673c0241
4
+ data.tar.gz: 8eae634358befc26450275963f351861e7d77eae84ad459d8452db260eda67c3
5
5
  SHA512:
6
- metadata.gz: f38f86f3560405b8cc48b70ecda45311203f0345775858b75f34a9716efc6150d6eda0f08f43986091b2136c141398f5a433e72e712b2b29c78bd990207d96b1
7
- data.tar.gz: 2353025ec62906aa3b80dcf56c2486ec949fbc2f3944ad9d1a69c8bd2ed90e323452647aa08983ff960a0f64edf040cf68cf550ed1e498f3c3ac64d712a708f4
6
+ metadata.gz: 1317e10d1d0e7dd45c5005e0e2346cafa25d2e5158927cae070b6dcd208ab11556c5201927c8a981f3c10536feedaa4b3fb40a3885d1330f279f7b3bbb04b490
7
+ data.tar.gz: 5dfeeb202a9653c4b338c97e44a53de92f30e7eb723769ca5bd22cfdf4763c27c7414808221cb630d3d49ecb4af474e70fd65fc5d0cae63b516f1fce1c2b9933
@@ -166,7 +166,8 @@ class OodPackaging::Build
166
166
  bootstrap_gpg! if gpg_sign?
167
167
  if podman_runtime?
168
168
  puts "\tBootstrap /root".blue
169
- sh "cp -r #{ctr_rpmmacros} #{ctr_gpg_dir} /root/"
169
+ sh "cp -r #{ctr_rpmmacros} /root/"
170
+ sh "cp -r #{ctr_gpg_dir} /root/" if gpg_sign? && build_box.dnf?
170
171
  sh "sed -i 's|/home/ood|/root|g' /root/.rpmmacros"
171
172
  end
172
173
  puts "\tBootstrap work dir".blue
@@ -92,7 +92,7 @@ class OodPackaging::BuildBox
92
92
  end
93
93
 
94
94
  def image_registry
95
- @config[:builx_box_registry] || ENV['OOD_PACKAGING_BUILD_BOX_REGISTRY'] || nil
95
+ @config[:build_box_registry] || ENV['OOD_PACKAGING_BUILD_BOX_REGISTRY'] || nil
96
96
  end
97
97
 
98
98
  def image_org
@@ -100,7 +100,7 @@ class OodPackaging::BuildBox
100
100
  end
101
101
 
102
102
  def image_name
103
- @config[:builx_box_name] || ENV['OOD_PACKAGING_BUILD_BOX_NAME'] || 'ood-buildbox'
103
+ @config[:build_box_name] || ENV['OOD_PACKAGING_BUILD_BOX_NAME'] || 'ood-buildbox'
104
104
  end
105
105
 
106
106
  def image_version
@@ -263,7 +263,7 @@ class OodPackaging::Package
263
263
  puts "Build FAILED package=#{package} dist=#{build_box.dist}".red
264
264
  raise
265
265
  ensure
266
- container_exec!(exec_attach, ['-i', '-t']) if attach?
266
+ container_attach! if attach?
267
267
  container_kill! if container_running? && !attach?
268
268
  end
269
269
 
@@ -302,6 +302,12 @@ class OodPackaging::Package
302
302
  raise
303
303
  end
304
304
 
305
+ def container_attach!
306
+ container_exec!(exec_attach, ['-i', '-t']) if attach?
307
+ ensure
308
+ container_kill! if container_running?
309
+ end
310
+
305
311
  def container_kill!
306
312
  puts "Killing container #{container_name}".blue
307
313
  cmd = [container_runtime, 'kill', container_name]
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Version code for OodPackaging
4
4
  module OodPackaging
5
- VERSION = '0.5.0'
5
+ VERSION = '0.5.1'
6
6
  PACKAGE_VERSION = {
7
7
  'ondemand-release' => {
8
8
  '(ubuntu|debian)' => '2.1.0',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ood_packaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trey Dockendorf
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-07-19 00:00:00.000000000 Z
12
+ date: 2022-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake