docker-deploy 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfca0ec413ebf7f90feade86eea9c92708fa08cf
|
4
|
+
data.tar.gz: 1f1aaedbafc2a1032356ad5e526d816c120fdfe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53b003bfc4e6ea0eaceef54d14e92aa9f76380d1148cb0a48f6e6ea1b4f098b3393f3eb15c3e1078165e024d9ee741ba09f9758f05a12d5bc7e4ec8b31062339
|
7
|
+
data.tar.gz: e55e79b0df617f9c92f17d5b281feae1dafac2b7bc8f17c2e8943c3a6dfb4bd061d71ca84bc33dbb8f4a7b302d94ed9c87ba9b3b93dceaafcd44f031d023f6e0
|
@@ -5,6 +5,7 @@ class GoogleCloudPlatform
|
|
5
5
|
def initialize(project_name, app_name, credentials)
|
6
6
|
@project_name = project_name
|
7
7
|
@app_name = app_name
|
8
|
+
|
8
9
|
# assume we already logged in (GCE instance or GCloud SDK)
|
9
10
|
puts project_name
|
10
11
|
|
@@ -37,8 +38,8 @@ class GoogleCloudPlatform
|
|
37
38
|
dist = <<-EOF
|
38
39
|
#!/bin/bash
|
39
40
|
|
40
|
-
gsutil cp gs://<
|
41
|
-
gsutil cp gs://<
|
41
|
+
gsutil cp gs://<bucket_name>/docker-compose/<primary_yaml> .
|
42
|
+
gsutil cp gs://<bucket_name>/docker-compose/<backup_yaml> .
|
42
43
|
|
43
44
|
# Pull Primary Containers and start them (faster service availability)
|
44
45
|
docker-compose pull -p <app_name> -f <primary_yaml>
|
@@ -49,6 +50,7 @@ docker-compose pull -p <app_name> -f <backup_yaml>
|
|
49
50
|
docker-compose up -p <app_name> -f <backup_yaml> -d
|
50
51
|
EOF
|
51
52
|
|
53
|
+
dist = dist.gsub('<bucket_name>', @app_name)
|
52
54
|
dist = dist.gsub('<app_name>', @app_name)
|
53
55
|
dist = dist.gsub('<primary_yaml>', self.get_yaml_filename('primary', true))
|
54
56
|
dist = dist.gsub('<backup_yaml>', self.get_yaml_filename('backup', true))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VJ Patel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gcloud
|