11# upstart template variables
22name : sauron
33
4- app_name : " {{ name }}"
5- app_repo : " git@github.com:CodeNow/{{ name }}.git"
6-
7- enviroment_vars :
8- LOGGLY_TOKEN : " {{ loggly_token }}"
9- RABBITMQ_HOSTNAME : " {{ rabbit_host_address }}"
10- RABBITMQ_PASSWORD : " {{ rabbit_password }}"
11- RABBITMQ_PORT : " {{ rabbit_port }}"
12- RABBITMQ_USERNAME : " {{ rabbit_username }}"
13- REDIS_IPADDRESS : " {{ redis_host_address }}"
14- REDIS_PORT : " {{ redis_port }}"
4+ container_image : " registry.runnable.com/runnable/{{ name }}"
5+ container_tag : " {{ git_branch }}"
6+ repo : " git@github.com:CodeNow/{{ name }}.git"
7+ node_version : " 4.2.2"
8+ npm_version : " 2.14.7"
9+
10+ weave_path : " /bin/weave"
11+ docker_path : " /bin/docker"
12+
13+ dockerfile_pre_install_commands : [
14+ " curl -L https://get.docker.com/builds/Linux/x86_64/docker-1.6.2 -o {{ docker_path }}" ,
15+ " chmod a+x {{ docker_path }}" ,
16+ " curl -L https://github.com/weaveworks/weave/releases/download/v1.3.1/weave -o {{ weave_path }}" ,
17+ " chmod a+x {{ weave_path }}"
18+ ]
19+
20+ container_envs : >
21+ -e LOGGLY_TOKEN="{{ loggly_token }}"
22+ -e MAVIS_URL="http://{{ mavis_hostname }}"
23+ -e RABBITMQ_HOSTNAME="{{ rabbit_host_address }}"
24+ -e RABBITMQ_PASSWORD="{{ rabbit_password }}"
25+ -e RABBITMQ_PORT="{{ rabbit_port }}"
26+ -e RABBITMQ_USERNAME="{{ rabbit_username }}"
27+ -e WEAVE_PATH={{ weave_path }}
28+
29+ container_run_opts : >
30+ -h {{ name }}
31+ -d
32+ -v /opt/ssl/docker/{{ name }}:/etc/ssl/docker:ro
33+ {{ container_envs }}
0 commit comments