Created
April 30, 2014 15:43
-
-
Save jbayer/82b0f3c9241302532d59 to your computer and use it in GitHub Desktop.
example of docker bosh release deployment manifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% deployment_name = 'docker' %> | |
<% os = 'ubuntu' %> | |
<% tld = 'microbosh' %> | |
<% director_uuid = 'GET_FROM_BOSH_STATUS' %> | |
--- | |
name: <%= deployment_name %> | |
director_uuid: <%= director_uuid %> | |
releases: | |
- name: docker | |
version: latest | |
compilation: | |
workers: 5 | |
network: default | |
reuse_compilation_vms: true | |
cloud_properties: | |
instance_type: m3.medium | |
update: | |
canaries: 0 | |
canary_watch_time: 30000-240000 | |
update_watch_time: 30000-240000 | |
max_in_flight: 32 | |
serial: false | |
networks: | |
- name: default | |
type: dynamic | |
dns: | |
- 8.8.8.8 | |
- 8.8.4.4 | |
cloud_properties: | |
subnet: subnet-e801199c | |
security_groups: | |
- sgjames | |
- name: elastic | |
type: vip | |
cloud_properties: {} | |
resource_pools: | |
- name: default | |
network: default | |
size: 1 | |
stemcell: | |
name: bosh-aws-xen-<%= os %> | |
version: latest | |
cloud_properties: | |
instance_type: m3.medium | |
jobs: | |
- name: docker | |
templates: | |
- name: docker | |
- name: containers | |
instances: 1 | |
resource_pool: default | |
persistent_disk: 65536 | |
networks: | |
- name: default | |
default: [dns, gateway] | |
- name: elastic | |
static_ips: | |
- 54.86.98.242 | |
properties: | |
containers: | |
- name: redis | |
image: "dockerfile/redis" | |
command: "--dir /var/lib/redis/ --appendonly yes" | |
bind_ports: | |
- "6379:6379" | |
bind_volumes: | |
- "/var/lib/redis" | |
entrypoint: "redis-server" | |
memory: "256m" | |
cpu_shares: 1 | |
env_vars: | |
- "EXAMPLE_VAR=1" | |
- name: mysql | |
image: "google/mysql" | |
bind_ports: | |
- "3306:3306" | |
bind_volumes: | |
- "/mysql" | |
- name: elasticsearch | |
image: "bosh/elasticsearch" | |
links: | |
- mysql:db | |
bind_ports: | |
- "9200:9200" | |
- "9300:9300" | |
bind_volumes: | |
- "/opt/elasticsearch/data" | |
dockerfile: | | |
FROM dockerfile/java | |
RUN wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz | |
RUN tar xzf elasticsearch-1.0.1.tar.gz | |
RUN mv elasticsearch-1.0.1 /opt/elasticsearch | |
RUN rm elasticsearch-1.0.1.tar.gz | |
EXPOSE 9200 | |
EXPOSE 9300 | |
ENTRYPOINT ["/opt/elasticsearch/bin/elasticsearch"] | |
properties: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment