File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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}}
You can’t perform that action at this time.
0 commit comments