-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
41 lines (34 loc) · 1002 Bytes
/
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
# Usage: docker-compose -f docker/docker-compose.yaml run swift-memcache-gsoc
version: "3.9"
services:
# Swift on Server CI
# e.g. docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.2204.57.yaml run test
memcached:
image: memcached:latest
ports:
- "11211:11211"
runtime-setup:
image: swift-memcache-gsoc:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: swift-memcache-gsoc:default
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ..:/code:z
working_dir: /code
soundness:
<<: *common
command: /bin/bash -xcl "swift -version && uname -a && ./scripts/soundness.sh"
test:
<<: *common
depends_on:
- runtime-setup
- memcached
command: /bin/bash -xcl "swift $${SWIFT_TEST_VERB-test} $${WARN_AS_ERROR_ARG-} $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-} $${STRICT_CONCURRENCY_ARG-}"
# util
shell:
<<: *common
entrypoint: /bin/bash