Skip to content

Commit 927a7e4

Browse files
add fluffy
1 parent d140345 commit 927a7e4

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

ansible/fluffy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- hosts: redis
3+
4+
- hosts: fluffy
5+
vars_files:
6+
- "group_vars/alpha-fluffy.yml"
7+
roles:
8+
- { role: notify, tags: "notify" }
9+
- { role: redis_key, tags: ["setup", "redis_key"] }
10+
- { role: builder, tags: "build" }
11+
- { role: container_start, tags: "deploy" }
12+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "fluffy"
2+
3+
container_image: "registry.runnable.com/runnable/{{ name }}"
4+
container_tag: "{{ git_branch }}"
5+
repo: "git@github.com:CodeNow/{{ name }}.git"
6+
hosted_ports: ["{{ fluffy_port }}"]
7+
node_version: "4.2.2"
8+
npm_version: "2.1.18"
9+
10+
# for redis
11+
redis_key: "frontend:{{ fluffy_hostname }}"
12+
is_redis_update_required: 'yes'
13+
14+
dockerfile_post_install_commands: [
15+
"git clone -b master --single-branch git@github.com:CodeNow/devops-scripts /opt/devops-scripts",
16+
"git clone -b bin-bash --single-branch git@github.com:CodeNow/docks-cli /opt/docks-cli",
17+
"cd /opt/docks-cli && npm install && npm link ."
18+
]
19+
20+
# container settings
21+
container_envs: >
22+
-e PORT={{ hosted_ports[0] }}
23+
-e NODE_ENV={{ node_env }}
24+
-e DEVOPS_SCRIPTS_PATH="opt/devops-scripts"
25+
26+
container_run_opts: >
27+
-h {{ name }}
28+
-d
29+
-P
30+
{{container_envs}}

0 commit comments

Comments
 (0)