gearship 0.1.4 → 0.2.0
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/templates/actions/start_app.sh +5 -1
- data/lib/templates/gearship.yml +3 -2
- data/lib/templates/missions/update_app.sh +1 -0
- 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: f4795e4313ba05acb565dc24a6f5615733325301
|
4
|
+
data.tar.gz: 330df1aa2aa2c4330bdc6543f81f5198948ef755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a56cbebcf578e116ff33b31c9c8ce64dfd598949ce06f9066521639d6d01ba3adb708588430850af1b813b22708edc48db6d520485821bb5fe3acf73f38511d
|
7
|
+
data.tar.gz: 2f3b3f76b8cc6de3a5655d491bf364fd2e2004950a7295bb73467f8a0c37684e8e044a516f26860b8e0b505e45d99c063920eb2d7b3b4b99dc588e73f38ea674
|
data/gearship.gemspec
CHANGED
@@ -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
|
3
|
+
docker run --name=<%= @attributes.app_name %> \
|
4
|
+
--publish=<%= @attributes.app_port_map %> \
|
5
|
+
--restart=always \
|
6
|
+
--detach \
|
7
|
+
<%= @attributes.app_repo %>
|
data/lib/templates/gearship.yml
CHANGED
@@ -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: "
|
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.
|