cirun 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cirun/runner.rb +3 -2
- data/lib/cirun/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d99ecfb410df9d3d43419a8edb3e36f3b1e56260044a45252dbf3dcfcf14061d
|
4
|
+
data.tar.gz: aafb075066e97a6d412c3be411c833ffa529807ab062e4e0ab74fd60b0bb01fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b16333dca3793fbd031f3fdf289a0f8dc22e861b3ae114e8b98fcbf42d074e5824dbf5bd2f5d54b52088ea681aee590aee9c5cf3abb38b0a0f07a969362195f
|
7
|
+
data.tar.gz: 2eba82a64d6a3152d9e1d00e1f66cda4286f34d1644a01b29e7fea9ae3edc11032025343c4ddd2849aace9202d4fe13c47aa5502e8595ed614f30f229945dedf
|
data/lib/cirun/runner.rb
CHANGED
@@ -5,11 +5,12 @@ module Cirun
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def update_image
|
8
|
-
|
9
|
-
|
8
|
+
cmd = "docker pull redmineup/#{@opts.plugin}"
|
9
|
+
puts `#{cmd}`
|
10
10
|
end
|
11
11
|
|
12
12
|
def run
|
13
|
+
update_image
|
13
14
|
ruby_short = @opts.ruby.split('-').first
|
14
15
|
cmd = "docker run -t --env RUBY_VERSION=ruby-#{ruby_short} --env DB=#{@opts.database} --env REDMINE=redmine-#{@opts.redmine} --env PLUGIN=#{@opts.plugin} --env DEPENDENT=#{@opts.dependent} --mount type=bind,source=#{`pwd`.chomp},target=/var/www/ruby-#{ruby_short}/#{@opts.database}/redmine-#{@opts.redmine}/plugins/#{@opts.plugin} redmineup/#{@opts.plugin} /root/run_local.sh"
|
15
16
|
puts "Running:\n#{cmd}"
|
data/lib/cirun/version.rb
CHANGED