-
Notifications
You must be signed in to change notification settings - Fork 8
/
camp.yml
107 lines (94 loc) · 2.64 KB
/
camp.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#
# CAMP
#
# Copyright (C) 2017, 2018 SINTEF Digital
# All rights reserved.
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
#
goals:
running:
- Entry
components:
browser:
provides_services: [ Entry ]
requires_services: [ Test ]
implementation:
docker:
file: browser/Dockerfile
# TODO: This component has to be updated so as to trigger JMeter
# instead of pytest
tests:
command: bzt citygo.jmx --option=modules.console.disable=false -report
reports:
location: "./"
pattern: ".xml"
format: junit
hub:
provides_services: [ Test ]
requires_services: [ HttpProxy ]
implementation:
docker:
image: selenium/hub
apache:
provides_services: [ HttpProxy ]
requires_services: [ CityGo ]
variables:
thread_limit:
type: Integer
values: [ 64, 128 ]
realization:
- targets: [ docker-compose.yml ]
pattern: "ThreadLimit=64"
replacements: [ ThreadLimit=64, ThreadLimit=128 ]
threads_per_child:
type: Integer
values:
range: [0, 128]
coverage: 10
realization:
- targets: [ docker-compose.yml ]
pattern: ThreadsPerChild=25
replacements: ["ThreadsPerChild={value}"]
max_request_workers:
type: Integer
realization:
- targets: [ docker-compose.yml ]
pattern: MaxRequestWorkers=150
replacements: ["MaxRequestWorkers={value}"]
implementation:
docker:
file: apache/Dockerfile
citygo:
provides_services: [ CityGo ]
requires_services: [ Postgres, Mongo ]
requires_features: [ Python ]
implementation:
docker:
file: citygo/Dockerfile
python:
provides_features: [ Python ]
requires_features: [ Ubuntu ]
implementation:
docker:
file: python/Dockerfile
ubuntu:
provides_features: [ Ubuntu ]
implementation:
docker:
image: ubuntu:xenial
mongo:
provides_services: [ Mongo ]
implementation:
docker:
image: mongo:4.0.6-xenial
postgres:
provides_services: [ Postgres ]
implementation:
docker:
file: postgres/Dockerfile
constraints:
- apache_0_threads_per_child.value < apache_0_thread_limit.value
- apache_0_max_request_workers.value == 16 * apache_0_threads_per_child.value
- Or([And([apache_0_threads_per_child.value >= 100, apache_0_max_request_workers.value >= 200]), And([apache_0_thread_limit.value <= 64, apache_0_max_request_workers.value >= 2])])