gearship 0.2.1 → 0.2.2
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/gearship.gemspec +1 -1
- data/lib/gearship/cli.rb +1 -0
- data/lib/gearship.rb +1 -1
- data/lib/templates/.dockerignore +1 -0
- data/lib/templates/.gitignore +1 -1
- data/lib/templates/actions/pull_latest_image.sh +1 -1
- data/lib/templates/actions/remove_container.sh +2 -2
- data/lib/templates/actions/start_container.sh +4 -4
- data/lib/templates/gearship.yml +3 -3
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 130d1bc5e651c3a5863a8fefa6b14844af7aca2d
|
4
|
+
data.tar.gz: 279b8db270159a6969a99f0c220f3398004ae356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b05625cfe8b73be24ffbcdcdb1fbba612f626f08afd9957488217708965eb92501d404961dfa6bf67cd922fdcaf63b6493f2e2d73b79c1e03b8fdff0178b570
|
7
|
+
data.tar.gz: 26461c3a8ddd5b2d7a7b8c6e061dc5941adb2824b00be82dbc6c9fda9905f1a19ecfbcdadd0521571798440a448f512ac1624540853b2a072a4d500c70bd09c7
|
data/gearship.gemspec
CHANGED
data/lib/gearship/cli.rb
CHANGED
@@ -35,6 +35,7 @@ module Gearship
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def do_init(project)
|
38
|
+
copy_file 'templates/.dockerignore', ".dockerignore"
|
38
39
|
copy_file 'templates/.gitignore', "#{project}/.gitignore"
|
39
40
|
copy_file 'templates/gearship.yml', "#{project}/gearship.yml"
|
40
41
|
copy_file 'templates/gearship.sh', "#{project}/gearship.sh"
|
data/lib/gearship.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
gearship
|
data/lib/templates/.gitignore
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
compiled
|
@@ -1,2 +1,2 @@
|
|
1
1
|
docker login -u="<%= @attributes.docker_username %>" -p="<%= @attributes.docker_password %>"
|
2
|
-
docker pull <%= @attributes.
|
2
|
+
docker pull <%= @attributes.container_repo %>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
docker stop <%= @attributes.
|
2
|
-
docker rm <%= @attributes.
|
1
|
+
docker stop <%= @attributes.container_name %>
|
2
|
+
docker rm <%= @attributes.container_name %>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
docker run --name
|
2
|
-
--publish
|
3
|
-
--restart
|
1
|
+
docker run --name <%= @attributes.container_name %> \
|
2
|
+
--publish <%= @attributes.container_port_map %> \
|
3
|
+
--restart always \
|
4
4
|
--detach \
|
5
|
-
<%= @attributes.
|
5
|
+
<%= @attributes.container_repo %>
|
data/lib/templates/gearship.yml
CHANGED
@@ -3,9 +3,9 @@ attributes:
|
|
3
3
|
ssh_target: user@target:port
|
4
4
|
docker_username: docker_user
|
5
5
|
docker_password: docker_password
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
container_name: container_name
|
7
|
+
container_repo: username/repository
|
8
|
+
container_port_map: "80:4000"
|
9
9
|
|
10
10
|
# Remote actions here will be downloaded to compiled/actions.
|
11
11
|
actions:
|
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.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonas
|
@@ -72,6 +72,7 @@ files:
|
|
72
72
|
- lib/gearship/cli.rb
|
73
73
|
- lib/gearship/logger.rb
|
74
74
|
- lib/gearship/utility.rb
|
75
|
+
- lib/templates/.dockerignore
|
75
76
|
- lib/templates/.gitignore
|
76
77
|
- lib/templates/actions/configure_firewall.sh
|
77
78
|
- lib/templates/actions/install_basics.sh
|