gantree 0.6.10 → 0.6.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -22
- data/lib/gantree/docker.rb +13 -0
- data/lib/gantree/version.rb +1 -1
- 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: d47a2fa4853744253984db056ae6fcd9d449d083
|
4
|
+
data.tar.gz: 698a1b88d27a100463ea07252f208ea848f12c99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f8f424f4510e5b6fbff99bf8a2ac60bd6c032d137acb8bef23dc29fdf412a023263550c4558c48ea8fbbcda07058b6fa024e96ae2ce44f81c3675d406f3df20
|
7
|
+
data.tar.gz: 409b3eb0c7470ada721a876f2a47c95bf9e9dc8607cccfd8943827e43679cff5ea1c4b85c91342139ea9c942dc76fc8aef3a6b4e9de9212b0016905619457570
|
data/README.md
CHANGED
@@ -67,28 +67,6 @@ You can also specify a new image tag to use for the deploy
|
|
67
67
|
gantree deploy -t latest stag-cauldon-app-s1
|
68
68
|
```
|
69
69
|
|
70
|
-
|
71
|
-
### Create Stacks
|
72
|
-
|
73
|
-
Gantree allows you to leverage the power of aws cloud formation to create your entire elastic beanstalk stack, rds, caching layer etc all while maintaining a set naming convention. This does the following:
|
74
|
-
* uses the ruby-cloudformation-dsl to generate nested cloud formation templates inside a cfn folder in your repo
|
75
|
-
* uploads them to an s3 bucket
|
76
|
-
* uses aws-sdk to communicate with cfn and initiate the stack creation
|
77
|
-
|
78
|
-
To generate a basic staging cluster for linguist we would do:
|
79
|
-
```
|
80
|
-
gantree create linguist-stag-s1
|
81
|
-
```
|
82
|
-
|
83
|
-
In the elastic beanstalk console you will now see an application called
|
84
|
-
**linguist-stag-s1** with an environment called **stag-linguist-app-s1**
|
85
|
-
|
86
|
-
You can modify the name of the environment if this does not fit your naming convention:
|
87
|
-
```
|
88
|
-
gantre create your_app_name -e your_env_name
|
89
|
-
```
|
90
|
-
|
91
|
-
|
92
70
|
### Ship
|
93
71
|
|
94
72
|
This command does three things:
|
data/lib/gantree/docker.rb
CHANGED
@@ -34,6 +34,13 @@ module Gantree
|
|
34
34
|
|
35
35
|
def build
|
36
36
|
puts "Building..."
|
37
|
+
|
38
|
+
if system("git rev-parse --short HEAD > version.txt")
|
39
|
+
puts "Outputting short hash to version.txt"
|
40
|
+
else
|
41
|
+
puts "Error: Could not output commit hash to version.txt (is this a git repository?)"
|
42
|
+
end
|
43
|
+
|
37
44
|
if system("docker build -t #{@image_path}:#{@tag} .")
|
38
45
|
puts "Image Built: #{@image_path}:#{@tag}".green
|
39
46
|
puts "gantree push --image-path #{@image_path} -t #{@tag}" unless @options[:hush]
|
@@ -42,6 +49,12 @@ module Gantree
|
|
42
49
|
puts "Error: Image was not built successfully".red
|
43
50
|
exit 1
|
44
51
|
end
|
52
|
+
|
53
|
+
if system("rm -f version.txt")
|
54
|
+
puts "Removing version.txt after docker build"
|
55
|
+
else
|
56
|
+
puts "Error: Can't remove version.txt after docker build"
|
57
|
+
end
|
45
58
|
end
|
46
59
|
|
47
60
|
def push
|
data/lib/gantree/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gantree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|