-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
173 lines (152 loc) · 5.14 KB
/
Copy pathcompose.yaml
File metadata and controls
173 lines (152 loc) · 5.14 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
x-sharpproof-common: &sharpproof-common
image: ${SHARPPROOF_TOOLING_IMAGE:-${COMPOSE_PROJECT_NAME}-tooling:local}
build:
context: .
dockerfile: eng/container/Dockerfile
target: dev
args:
USER_UID: ${SHARPPROOF_USER_UID:-1000}
USER_GID: ${SHARPPROOF_USER_GID:-1000}
platform: linux/amd64
# Task containers start as root only long enough for the entrypoint to
# normalize bind-mount ownership, then immediately exec as sharpproof.
user: "0:0"
init: true
network_mode: bridge
environment:
NUGET_PACKAGES: /home/sharpproof/.nuget/packages
DOTNET_CLI_HOME: /home/sharpproof/.dotnet
SHARPPROOF_REPO_ROOT: /workspace/SharpProof
# Keep automatic CPU/2 project parallelism by default, but allow a
# caller running several containers to cap each container's lane budget.
SHARPPROOF_TEST_PROJECT_PARALLELISM: ${SHARPPROOF_TEST_PROJECT_PARALLELISM:-}
volumes:
- .:/workspace/SharpProof
- sharpproof-nuget:/home/sharpproof/.nuget/packages
- sharpproof-dotnet-home:/home/sharpproof/.dotnet
- ./artifacts:/workspace/SharpProof/artifacts
# Finite task workspaces, compiler scratch, and test roots live under /tmp.
# Keep those high-churn files in memory by default; raise the size only for
# unusually large package or coverage campaigns.
tmpfs:
- /tmp:rw,exec,size=${SHARPPROOF_TMPFS_SIZE:-8g}
mem_limit: ${SHARPPROOF_CONTAINER_MEMORY_LIMIT:-40g}
cpus: ${SHARPPROOF_CONTAINER_CPU_LIMIT:-0}
services:
dev:
<<: *sharpproof-common
user: "${SHARPPROOF_USER_UID:-1000}:${SHARPPROOF_USER_GID:-1000}"
environment:
NUGET_PACKAGES: /home/sharpproof/.nuget/packages
DOTNET_CLI_HOME: /home/sharpproof/.dotnet
DOTNET_CLI_USE_MSBUILD_SERVER: "1"
SHARPPROOF_REPO_ROOT: /workspace/SharpProof
SHARPPROOF_TEST_PROJECT_PARALLELISM: ${SHARPPROOF_TEST_PROJECT_PARALLELISM:-}
SHARPPROOF_ORIGIN_URL: ${SHARPPROOF_ORIGIN_URL:-https://github.com/alexyorke/SharpProof.git}
SHARPPROOF_DEV_REF: ${SHARPPROOF_DEV_REF:-}
SHARPPROOF_DEV_CONTAINER: "1"
volumes:
- sharpproof-workspace:/workspace/SharpProof
- sharpproof-nuget:/home/sharpproof/.nuget/packages
- sharpproof-dotnet-home:/home/sharpproof/.dotnet
command: ["dev", "-lc", "while sleep 1000; do :; done"]
loop:
<<: *sharpproof-common
user: "${SHARPPROOF_USER_UID:-1000}:${SHARPPROOF_USER_GID:-1000}"
environment:
NUGET_PACKAGES: /home/sharpproof/.nuget/packages
DOTNET_CLI_HOME: /home/sharpproof/.dotnet
DOTNET_CLI_USE_MSBUILD_SERVER: "1"
SHARPPROOF_REPO_ROOT: /workspace/SharpProof
SHARPPROOF_TEST_PROJECT_PARALLELISM: ${SHARPPROOF_TEST_PROJECT_PARALLELISM:-}
SHARPPROOF_ORIGIN_URL: ${SHARPPROOF_ORIGIN_URL:-https://github.com/alexyorke/SharpProof.git}
SHARPPROOF_LOOP_SOURCE_ROOT: /workspace/HostSource
SHARPPROOF_LOOP_ARTIFACTS_ROOT: /workspace/LoopArtifacts
volumes:
- .:/workspace/HostSource:ro
- sharpproof-loop-workspace:/workspace/SharpProof
- sharpproof-nuget:/home/sharpproof/.nuget/packages
- sharpproof-dotnet-home:/home/sharpproof/.dotnet
- ./artifacts:/workspace/LoopArtifacts
command: ["dev", "-lc", "while sleep 1000; do :; done"]
tooling:
<<: *sharpproof-common
command: ["dev"]
restore:
<<: *sharpproof-common
command: ["restore"]
profiles: ["tasks"]
build:
<<: *sharpproof-common
command: ["build"]
profiles: ["tasks"]
check:
<<: *sharpproof-common
command: ["check"]
profiles: ["tests"]
test-changed:
<<: *sharpproof-common
command: ["test-changed"]
profiles: ["tests"]
semantic-tests:
<<: *sharpproof-common
command: ["semantic-tests"]
profiles: ["tests"]
portable-tests:
<<: *sharpproof-common
command: ["portable-tests"]
profiles: ["tests"]
worker-tests:
<<: *sharpproof-common
command: ["worker-tests"]
profiles: ["tests"]
package-tests:
<<: *sharpproof-common
command: ["package-tests"]
profiles: ["tests"]
package-consumers:
<<: *sharpproof-common
command:
- "package-consumers"
- "-Configuration"
- "Release"
- "-PackageSource"
- "/workspace/SharpProof/artifacts/container-packages"
profiles: ["tests"]
performance:
<<: *sharpproof-common
command: ["performance"]
profiles: ["gates"]
performance-smoke:
<<: *sharpproof-common
command: ["performance-smoke"]
profiles: ["tests"]
coverage:
<<: *sharpproof-common
command: ["coverage"]
profiles: ["gates"]
mutation:
<<: *sharpproof-common
command: ["mutation"]
profiles: ["gates"]
dependency-audit:
<<: *sharpproof-common
command: ["dependency-audit"]
profiles: ["gates"]
acceptance:
<<: *sharpproof-common
command: ["acceptance", "-Configuration", "Release"]
profiles: ["gates"]
pack:
<<: *sharpproof-common
command: ["pack", "-Configuration", "Release"]
profiles: ["release"]
pilots:
<<: *sharpproof-common
command: ["pilots", "-Configuration", "Release"]
profiles: ["release"]
volumes:
sharpproof-workspace:
sharpproof-loop-workspace:
sharpproof-nuget:
sharpproof-dotnet-home: