capdocker 1.0.79 → 1.0.80
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/capdocker.gemspec +1 -1
- data/lib/docker_deploy.rb +10 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bda3ac3fe19b2692ad0fbaa3de4f0f8c97ced9a
|
4
|
+
data.tar.gz: 1787d10b6d6bdbecf1d27704f1a2bb9a03eec947
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ff5eb767b147f3cf010e5bb267fbe6ef3b1bede2f9b05dbe1f869a895648ceded85948f7e3bafeeece99883f980f83f92ae2bd452754d70c8a89b7beaca33c2
|
7
|
+
data.tar.gz: d759577e55ce8e384c7fa76d67a72253c4487702b4807a16761be0cc47de9bbd38e77b0a976f52675c5ec7bc8711717680f1a2f4153b9c7c94bb6d4bb9cc7f8c
|
data/capdocker.gemspec
CHANGED
data/lib/docker_deploy.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Capistrano::Configuration.instance(:must_exist).load do
|
1
|
+
Capistrano::Configuration.instance(:must_exist).load do
|
2
2
|
|
3
3
|
# Default Variables and Role
|
4
4
|
random_app_number = rand(3000)
|
@@ -9,7 +9,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
9
9
|
set :app_port, random_app_number+8100
|
10
10
|
set :branch, "HEAD"
|
11
11
|
set :volumes, []
|
12
|
-
|
12
|
+
set :build_commands, []
|
13
|
+
if roles.empty?
|
13
14
|
role :web, "obb1.oneblackbear.com"
|
14
15
|
end
|
15
16
|
|
@@ -44,7 +45,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
44
45
|
# This is the manin deployment namespace
|
45
46
|
# default command gets run if invoked via `cap deploy`
|
46
47
|
namespace :deploy do
|
47
|
-
|
48
|
+
|
48
49
|
desc "Deploys the project to docker server."
|
49
50
|
task :default do
|
50
51
|
update_code
|
@@ -54,7 +55,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
54
55
|
end
|
55
56
|
|
56
57
|
task :prepare do
|
57
|
-
set :basedir, capture("pwd").gsub(/\n|\r/, "")
|
58
|
+
set :basedir, capture("pwd").gsub(/\n|\r/, "")
|
58
59
|
run "cd ./containers/#{application} && rm -Rf ./*" rescue ""
|
59
60
|
run "mkdir -p containers/#{application}/platform"
|
60
61
|
run "mkdir -m0777 -p mounts/#{application}/mysql"
|
@@ -63,7 +64,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
63
64
|
task :configure_platform do
|
64
65
|
host_content = from_template("templates/nginx_host.erb")
|
65
66
|
put host_content, "containers/#{application}/platform/nginx_host.conf"
|
66
|
-
|
67
|
+
|
67
68
|
container_content = from_template("templates/nginx_container.erb")
|
68
69
|
put container_content, "containers/#{application}/platform/nginx_container.conf"
|
69
70
|
|
@@ -81,15 +82,15 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
81
82
|
run "rm containers/#{application}/#{tag}"
|
82
83
|
end
|
83
84
|
|
84
|
-
task :update_builds do
|
85
|
+
task :update_builds do
|
85
86
|
|
86
87
|
end
|
87
88
|
|
88
|
-
task :mount_shares do
|
89
|
-
|
89
|
+
task :mount_shares do
|
90
|
+
|
90
91
|
end
|
91
92
|
|
92
|
-
task :create_symlink do
|
93
|
+
task :create_symlink do
|
93
94
|
run "ln -f -s #{basedir}/containers/#{application}/platform/nginx_host.conf ./conf/nginx/#{application}.conf"
|
94
95
|
end
|
95
96
|
|