forked from brooklyncentral/blueprint-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-cloud.yaml
50 lines (49 loc) · 1.84 KB
/
docker-cloud.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 2014 by Cloudsoft Corporation Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
id: docker-cloud
name: "Docker Cloud Infrastructure"
origin: "https://github.com/brooklyncentral/clocker/"
services:
- serviceType: brooklyn.entity.container.docker.DockerInfrastructure
id: infrastructure
brooklyn.config:
install.version: "1.2"
entity.dynamicLocation.name: "my-docker-cloud"
docker.host.securityGroup: "docker"
docker.host.cluster.initial.size: 1
docker.host.register: false
docker.policy.ha.enable: true
docker.host.flags:
minRam: 3000
minCores: 2
docker.container.strategies:
- $brooklyn:object:
type: "brooklyn.location.docker.strategy.BreadthFirstPlacementStrategy"
brooklyn.config:
maxContainers: 16
- $brooklyn:object:
type: "brooklyn.location.docker.strategy.CpuUsagePlacementStrategy"
brooklyn.config:
maxCpuUsage: 0.75
docker.host.spec:
$brooklyn:entitySpec:
type: brooklyn.entity.container.docker.DockerHost
brooklyn.config:
start.timeout: 15m
docker.host.nameFormat: "docker-%1$s"
docker.container.spec:
$brooklyn:entitySpec:
type: brooklyn.entity.container.docker.DockerContainer
brooklyn.config:
docker.container.nameFormat: "docker-%2$d"