gearship 0.1.4 → 0.2.0

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: a09c0d3d52ec47c3437ef977dc3f8b7d848d3b07
4
- data.tar.gz: a2ff93153c240848de25851cf9b5ee759478cdbb
3
+ metadata.gz: f4795e4313ba05acb565dc24a6f5615733325301
4
+ data.tar.gz: 330df1aa2aa2c4330bdc6543f81f5198948ef755
5
5
  SHA512:
6
- metadata.gz: a71a1f40d23de2c94e1941370a87e41ad87e34f5fc9542c48c2e1436b09251d30fe5a8d3cdb9064e3cd4c69e4f550a39eb993f44921955a867840d145739952a
7
- data.tar.gz: 6b83b654d61662cfd5242ac83c1b50824ec1a288177fbdcf890699efa4a449e6f871f0212c37463262c56086733c933e47f544c87cdaa43720dd35bd17331913
6
+ metadata.gz: 6a56cbebcf578e116ff33b31c9c8ce64dfd598949ce06f9066521639d6d01ba3adb708588430850af1b813b22708edc48db6d520485821bb5fe3acf73f38511d
7
+ data.tar.gz: 2f3b3f76b8cc6de3a5655d491bf364fd2e2004950a7295bb73467f8a0c37684e8e044a516f26860b8e0b505e45d99c063920eb2d7b3b4b99dc588e73f38ea674
data/gearship.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'gearship'
5
- spec.version = '0.1.4'
5
+ spec.version = '0.2.0'
6
6
  spec.authors = ['Leonas']
7
7
  spec.email = ['leonas@leonas.io']
8
8
  spec.homepage = 'http://github.com/leonas/gearship'
@@ -1,3 +1,7 @@
1
1
  docker login -u="<%= @attributes.docker_username %>" -p="<%= @attributes.docker_password %>"
2
2
  docker pull <%= @attributes.app_repo %>
3
- docker run -d -p <%= @attributes.app_port_map %> --name=<%= @attributes.app_name %> --restart=always -d <%= @attributes.app_repo %>
3
+ docker run --name=<%= @attributes.app_name %> \
4
+ --publish=<%= @attributes.app_port_map %> \
5
+ --restart=always \
6
+ --detach \
7
+ <%= @attributes.app_repo %>
@@ -1,4 +1,3 @@
1
- ---
2
1
  # variables here will be compiled to individual files in compiled/attributes.
3
2
  attributes:
4
3
  ssh_target: user@target:port
@@ -6,7 +5,7 @@ attributes:
6
5
  docker_password: docker_password
7
6
  app_name: app_name
8
7
  app_repo: username/repository
9
- app_port_map: "4000:4000"
8
+ app_port_map: "80:4000"
10
9
 
11
10
  # Remote actions here will be downloaded to compiled/actions.
12
11
  actions:
@@ -23,3 +22,5 @@ preferences:
23
22
 
24
23
  # Use variables like <%= @attributes.environment %> in actions, roles, files and install.sh.
25
24
  eval_erb: true
25
+
26
+ # For security concerns, you may want to keep this file outside of source control, but you should be okay if your project repos are private to you.
@@ -1,2 +1,3 @@
1
1
  docker stop <%= @attributes.app_name %>
2
+ docker rm <%= @attributes.app_name %>
2
3
  source actions/start_app.sh
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gearship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonas