bosh-stemcell 1.2905.0 → 1.2915.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/bosh/stemcell/stage_runner.rb +10 -0
- data/lib/bosh/stemcell/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48b9f47832ea080701b97cf20d67d85fbb9e9f91
|
4
|
+
data.tar.gz: bff1a1d1470d3426f74e1ea8c7fbc8e4a3f56975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 292d8754ef6acd4af6ca939bfc1ec7a9bdf767de28d41a555f0ceba80961cc6799db3aa8820c5a989ff0c71e84564547393afc9714856d0d396dfa5cf130a05b
|
7
|
+
data.tar.gz: 473de17cebc3663ec16555b43dae124fb9bbf2774f0a48fc90ce5fee8f8a434faa90555b3d0b3dea4b0b4ce522eb022606088217ce6c4589f44d375ddf003cd5
|
data/README.md
CHANGED
@@ -68,7 +68,7 @@ The arguments to `stemcell:build_os_image` are:
|
|
68
68
|
There are a few extra steps you need to do before building a RHEL OS image:
|
69
69
|
|
70
70
|
1. Start up or re-provision the stemcell building machine (run `vagrant up` or `vagrant provision` from this directory)
|
71
|
-
2. Download the RHEL 7
|
71
|
+
2. Download the [RHEL 7.0 Binary DVD](https://access.redhat.com/downloads/content/69/ver=/rhel---7/7.0/x86_64/product-downloads) image and use `scp` to copy it to the stemcell building machine. Note that RHEL 7.1 does not yet build correctly.
|
72
72
|
3. On the stemcell building machine, mount the RHEL 7 DVD at `/mnt/rhel`:
|
73
73
|
|
74
74
|
# mkdir -p /mnt/rhel
|
@@ -2,6 +2,9 @@ require 'bosh/core/shell'
|
|
2
2
|
|
3
3
|
module Bosh::Stemcell
|
4
4
|
class StageRunner
|
5
|
+
|
6
|
+
REQUIRED_UID=1000
|
7
|
+
|
5
8
|
def initialize(options)
|
6
9
|
@build_path = options.fetch(:build_path)
|
7
10
|
@command_env = options.fetch(:command_env)
|
@@ -9,7 +12,14 @@ module Bosh::Stemcell
|
|
9
12
|
@work_path = options.fetch(:work_path)
|
10
13
|
end
|
11
14
|
|
15
|
+
def check_correct_uid
|
16
|
+
if Process.euid != REQUIRED_UID
|
17
|
+
raise "You must build stemcells as a user with UID #{REQUIRED_UID}. Your effective UID now is #{Process.euid}."
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
12
21
|
def configure_and_apply(stages, resume_from_stage = nil)
|
22
|
+
check_correct_uid()
|
13
23
|
stages = resume_from(stages, resume_from_stage)
|
14
24
|
configure(stages)
|
15
25
|
apply(stages)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh-stemcell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2915.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pivotal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bosh_aws_cpi
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.2915.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.2915.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bosh-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.2915.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.2915.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: fakefs
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|