-
Notifications
You must be signed in to change notification settings - Fork 122
/
Copy pathdocker-compose.yaml
45 lines (36 loc) · 1.01 KB
/
docker-compose.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
# this file is not designed to be run directly
# instead, use the docker-compose.<os>.<swift> files
# eg docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.1804.50.yaml run test
version: "3"
services:
runtime-setup:
image: async-http-client:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: async-http-client:default
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ..:/code:z
working_dir: /code
cap_drop:
- CAP_NET_RAW
- CAP_NET_BIND_SERVICE
soundness:
<<: *common
command: /bin/bash -xcl "./scripts/soundness.sh"
documentation-check:
<<: *common
command: /bin/bash -xcl "./scripts/check-docs.sh"
test:
<<: *common
command: /bin/bash -xcl "swift test --parallel --enable-test-discovery $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-}"
# util
shell:
<<: *common
entrypoint: /bin/bash
docs:
<<: *common
command: /bin/bash -cl "./scripts/generate_docs.sh"