rbbt-image 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/build_rbbt_provision_sh.rb +11 -0
- data/bin/run_rbbt_docker.rb +1 -1
- data/lib/.keep +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c279784436501a9564bb7895d2d91229bc92860e
|
4
|
+
data.tar.gz: 6e3d5fe604b7317ae84923ebe0c3b1624d38dc05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84ff6d2d3bdd562fe155afe9ef799f6bc75b49bb01379fc9585f28de2cf034d34255a66a61119286d8c3109722ec28dd9f02599df3c83b135324942e67cd108b
|
7
|
+
data.tar.gz: 599938c3ba8a3feca88ba79a11bb2f252eeaa87c04fe0eb20fbfcf585a3738567ba515ad2fc115672bae33444fbb564824dc54af97c47129e7c8c7c2285ab59c
|
@@ -24,12 +24,14 @@ $ #{$0} [options]
|
|
24
24
|
-rw--remote_workflows* Remote workflows server from workflow-server
|
25
25
|
-ss--skip_base_system Skip base system installation
|
26
26
|
-sr--skip_ruby Skip ruby setup installation
|
27
|
+
-sg--skip_gem Skip ruby gem installation
|
27
28
|
-su--skip_user_setup Skip user setup
|
28
29
|
-sb--skip_bootstrap Skip user bootstrap
|
29
30
|
-c--concurrent Prepare system for high-concurrency
|
30
31
|
-dt--docker* Build docker image using the provided name
|
31
32
|
-df--docker_file* Use a Dockerfile different than the default
|
32
33
|
-dd--docker_dependency* Use a different image in the Dockerfile FROM
|
34
|
+
-v--volumnes* List of volumes to set-up
|
33
35
|
EOF
|
34
36
|
if options[:help]
|
35
37
|
if defined? rbbt_usage
|
@@ -45,6 +47,7 @@ SKIP_BASE_SYSTEM = options[:skip_base_system]
|
|
45
47
|
SKIP_RUBY = options[:skip_ruby]
|
46
48
|
SKIP_BOOT = options[:skip_bootstrap]
|
47
49
|
SKIP_USER = options[:skip_user_setup]
|
50
|
+
SKIP_GEM = options[:skip_gem]
|
48
51
|
|
49
52
|
VARIABLES={
|
50
53
|
:RBBT_LOG => 0,
|
@@ -75,6 +78,10 @@ echo "1. Provisioning base system"
|
|
75
78
|
echo "2. Setting up ruby"
|
76
79
|
#{File.read("share/provision_scripts/ruby_setup.sh") unless SKIP_RUBY}
|
77
80
|
|
81
|
+
# BASE SYSTEM
|
82
|
+
echo "2. Setting up gems"
|
83
|
+
#{File.read("share/provision_scripts/gem_setup.sh") unless SKIP_GEM}
|
84
|
+
|
78
85
|
#{"exit" if SKIP_USER}
|
79
86
|
|
80
87
|
####################
|
@@ -132,6 +139,10 @@ if options[:docker]
|
|
132
139
|
dockerfile = options[:dockerfile] || File.join(File.dirname(File.dirname(__FILE__)), 'Dockerfile')
|
133
140
|
dockerfile_text = Open.read(dockerfile)
|
134
141
|
dockerfile_text.sub!(/^FROM.*/,'FROM ' + docker_dependency) if docker_dependency
|
142
|
+
if options[:volumnes]
|
143
|
+
volumnes = options[:volumnes].split(/\s*[,|]\s*/).collect{|d| "VOLUME " << d} * "\n"
|
144
|
+
dockerfile_text.sub!(/^RUN/, volumnes + "\nRUN")
|
145
|
+
end
|
135
146
|
TmpFile.with_file(nil, false) do |dir|
|
136
147
|
FileUtils.mkdir_p dir
|
137
148
|
Path.setup(dir)
|
data/bin/run_rbbt_docker.rb
CHANGED
@@ -9,7 +9,7 @@ options = SOPT.setup <<EOF
|
|
9
9
|
|
10
10
|
Runs a docker image from an infrastructure definition file
|
11
11
|
|
12
|
-
$ #{ $0 } [options] <infrastructure.yaml> <command> <args> -- <extra docker options>
|
12
|
+
$ #{ $0 } [<options>] <infrastructure.yaml> <command> <args> [-- <extra docker options>]
|
13
13
|
|
14
14
|
Infrastruture definition comes in YAML
|
15
15
|
|
data/lib/.keep
ADDED
File without changes
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbbt-util
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- README.md
|
37
37
|
- bin/build_rbbt_provision_sh.rb
|
38
38
|
- bin/run_rbbt_docker.rb
|
39
|
+
- lib/.keep
|
39
40
|
homepage: http://github.com/mikisvaz/rbbt-image
|
40
41
|
licenses:
|
41
42
|
- MIT
|