Skip to content

Commit 91b80af

Browse files
author
Ryan Sandor Richards
committed
Changes so we can deploy shiva from within the astral project.
1 parent 58510d0 commit 91b80af

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

ansible/group_vars/alpha-shiva.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
name: "shiva"
2-
3-
container_image: "registry.runnable.com/runnable/{{ name }}"
2+
container_image: "registry.runnable.com/runnable/shiva"
43
container_tag: "{{ git_branch }}"
54
repo: "git@github.com:CodeNow/{{ name }}.git"
65
node_version: "0.10.38"
76
npm_version: "2.1.18"
87

8+
# Overrides the start command in the builder role
9+
npm_start_command: "run shiva-start"
10+
911
# Not actually needed, just allows container-kill-start to work
1012
hosted_ports: ["3000"]
1113

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
---
22
build_dir: /opts/builds/docker_build/
3+
npm_start_command: start

ansible/roles/builder/templates/basic_node/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ RUN {{ command }}
3434
{% endif %}
3535

3636
# Define default command.
37-
CMD ulimit -c unlimited && /usr/local/bin/npm start > /var/log/{{ name }}.log 2>&1
37+
CMD ulimit -c unlimited && /usr/local/bin/npm {{ npm_start_command }} > /var/log/{{ name }}.log 2>&1

0 commit comments

Comments
 (0)