rbbt-image 0.1.4 → 0.1.5
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 +4 -4
- data/bin/build_rbbt_provision_sh.rb +9 -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: 45cabf65fcec576a94bbac4f3281e413fffd227c
|
|
4
|
+
data.tar.gz: 801c437556c18f05c1bd70992983b3118d83f270
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b589d0f608ff6a6cea6b371f9a7273dbe3cb4353e560f165f23842c4fef62d00901b2b9b69290d272ee64c2458ed1e268c7dd59ce3a96023d453ad714e5939d
|
|
7
|
+
data.tar.gz: 30bab801dae6cb3238eb761b7b1ce7119830d6ca228091ea26e6df50dc4cb8e847edf233854e69bb27c6e1c9277c2a69560923b90ca1d2a29adade17f233370c
|
|
@@ -42,6 +42,8 @@ if options[:help]
|
|
|
42
42
|
end
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
+
root_dir = File.dirname(File.dirname(File.expand_path(__FILE__)))
|
|
46
|
+
|
|
45
47
|
USER = options[:user] || 'rbbt'
|
|
46
48
|
SKIP_BASE_SYSTEM = options[:skip_base_system]
|
|
47
49
|
SKIP_RUBY = options[:skip_ruby]
|
|
@@ -72,15 +74,15 @@ echo
|
|
|
72
74
|
|
|
73
75
|
# BASE SYSTEM
|
|
74
76
|
echo "1. Provisioning base system"
|
|
75
|
-
#{File.read("share/provision_scripts/ubuntu_setup.sh") unless SKIP_BASE_SYSTEM}
|
|
77
|
+
#{File.read(File.join(root_dir, "share/provision_scripts/ubuntu_setup.sh")) unless SKIP_BASE_SYSTEM}
|
|
76
78
|
|
|
77
79
|
# BASE SYSTEM
|
|
78
80
|
echo "2. Setting up ruby"
|
|
79
|
-
#{File.read("share/provision_scripts/ruby_setup.sh") unless SKIP_RUBY}
|
|
81
|
+
#{File.read(File.join(root_dir, "share/provision_scripts/ruby_setup.sh")) unless SKIP_RUBY}
|
|
80
82
|
|
|
81
83
|
# BASE SYSTEM
|
|
82
84
|
echo "2. Setting up gems"
|
|
83
|
-
#{File.read("share/provision_scripts/gem_setup.sh") unless SKIP_GEM}
|
|
85
|
+
#{File.read(File.join(root_dir, "share/provision_scripts/gem_setup.sh")) unless SKIP_GEM}
|
|
84
86
|
|
|
85
87
|
#{"exit" if SKIP_USER}
|
|
86
88
|
|
|
@@ -109,15 +111,15 @@ echo "2.1. Custom variables"
|
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
echo "2.2. Default variables"
|
|
112
|
-
#{ File.read("share/provision_scripts/variables.sh") }
|
|
114
|
+
#{ File.read(File.join(root_dir, "share/provision_scripts/variables.sh")) }
|
|
113
115
|
|
|
114
116
|
echo "2.3. Configuring rbbt"
|
|
115
|
-
#{File.read("share/provision_scripts/user_setup.sh")}
|
|
117
|
+
#{File.read(File.join(root_dir, "share/provision_scripts/user_setup.sh"))}
|
|
116
118
|
|
|
117
119
|
#{"exit" if SKIP_BOOT}
|
|
118
120
|
|
|
119
121
|
echo "2.4. Bootstrap system"
|
|
120
|
-
#{File.read("share/provision_scripts/bootstrap.sh")}
|
|
122
|
+
#{File.read(File.join(root_dir, "share/provision_scripts/bootstrap.sh"))}
|
|
121
123
|
|
|
122
124
|
EUSER
|
|
123
125
|
####################
|
|
@@ -136,7 +138,7 @@ EOF
|
|
|
136
138
|
docker_dependency = options[:docker_dependency]
|
|
137
139
|
|
|
138
140
|
if options[:docker]
|
|
139
|
-
dockerfile = options[:dockerfile] || File.join(
|
|
141
|
+
dockerfile = options[:dockerfile] || File.join(root_dir, 'Dockerfile')
|
|
140
142
|
dockerfile_text = Open.read(dockerfile)
|
|
141
143
|
dockerfile_text.sub!(/^FROM.*/,'FROM ' + docker_dependency) if docker_dependency
|
|
142
144
|
if options[:volumnes]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbbt-image
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miguel Vazquez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rbbt-util
|