forked from milvus-io/milvus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
116 lines (108 loc) · 3.63 KB
/
docker-compose.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
108
109
110
111
112
113
114
115
116
version: '3.5'
x-ccache: &ccache
CCACHE_COMPILERCHECK: content
CCACHE_COMPRESS: 1
CCACHE_COMPRESSLEVEL: 5
CCACHE_MAXSIZE: 2G
CCACHE_DIR: /ccache
services:
ubuntu-core:
image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-core
build:
context: .
dockerfile: docker/build_env/cpu/ubuntu${UBUNTU}/Dockerfile
cache_from:
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-core
shm_size: 2G
environment:
<<: *ccache
volumes: &ubuntu-volumes
- .:/milvus:delegated
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu-${UBUNTU}-cache:/ccache:delegated
networks:
- milvus
command: &ubuntu-command
["/bin/bash", "-l", "-c", "/milvus/ci/scripts/build.sh -t Release -j2 -i ${MILVUS_INSTALL_PREFIX} --with_fiu --coverage -u &&
/milvus/ci/scripts/run_unittest.sh -i ${MILVUS_INSTALL_PREFIX}"]
centos-core:
image: ${REPO}:${ARCH}-centos-${CENTOS}-core
build:
context: .
dockerfile: docker/build_env/cpu/centos${CENTOS}/Dockerfile
cache_from:
- ${REPO}:${ARCH}-centos-${CENTOS}-core
shm_size: 2G
environment:
<<: *ccache
volumes: ¢os-volumes
- .:/milvus:delegated
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-centos-${CENTOS}-cache:/ccache:delegated
networks:
- milvus
command: ¢os-command
["/bin/bash", "-l", "-c", "/milvus/ci/scripts/build.sh -t Release -j2 -i ${MILVUS_INSTALL_PREFIX} --with_fiu --coverage -u &&
/milvus/ci/scripts/run_unittest.sh -i ${MILVUS_INSTALL_PREFIX}"]
ubuntu-cuda-core:
image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-core
build:
context: .
dockerfile: docker/build_env/gpu/ubuntu${UBUNTU}/Dockerfile
cache_from:
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-core
shm_size: 2G
environment:
<<: *ccache
volumes: &ubuntu-cuda-volumes
- .:/milvus:delegated
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu-${UBUNTU}-cuda-cache:/ccache:delegated
networks:
- milvus
command: &ubuntu-cuda-command
["/bin/bash", "-l", "-c", "/milvus/ci/scripts/build.sh -t Release -j2 -i ${MILVUS_INSTALL_PREFIX} -g"]
centos-cuda-core:
image: ${REPO}:${ARCH}-centos-${CENTOS}-cuda-core
build:
context: .
dockerfile: docker/build_env/gpu/centos${CENTOS}/Dockerfile
cache_from:
- ${REPO}:${ARCH}-centos-${CENTOS}-cuda-core
shm_size: 2G
environment:
<<: *ccache
volumes: ¢os-cuda-volumes
- .:/milvus:delegated
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-centos-${CENTOS}-cuda-cache:/ccache:delegated
networks:
- milvus
command: ¢os-cuda-command
["/bin/bash", "-l", "-c", "/milvus/ci/scripts/build.sh -t Release -j2 -i ${MILVUS_INSTALL_PREFIX} -g"]
cpplint:
image: ${REPO}:${ARCH}-centos-${CENTOS}-core
build:
context: .
dockerfile: docker/build_env/cpu/centos${CENTOS}/Dockerfile
cache_from:
- ${REPO}:${ARCH}-centos-${CENTOS}-core
shm_size: 2G
volumes:
- .:/milvus:delegated
networks:
- milvus
command:
["/bin/bash", "-l", "-c", "/milvus/ci/scripts/build.sh -t Release -j2 -i ${MILVUS_INSTALL_PREFIX} -l --tidy -n"]
cpplint-gpu:
image: ${REPO}:${ARCH}-centos-${CENTOS}-cuda-core
build:
context: .
dockerfile: docker/build_env/gpu/centos${CENTOS}/Dockerfile
cache_from:
- ${REPO}:${ARCH}-centos-${CENTOS}-cuda-core
shm_size: 2G
volumes:
- .:/milvus:delegated
networks:
- milvus
command:
["/bin/bash", "-l", "-c", "/milvus/ci/scripts/build.sh -t Release -j2 -i ${MILVUS_INSTALL_PREFIX} -l -g --tidy -n"]
networks:
milvus: