2019-12-12 14:19:13 +08:00
|
|
|
version: '3.5'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
amd64-ubuntu-18.04-cache:
|
2019-12-14 11:39:52 +08:00
|
|
|
amd64-centos-7-cache:
|
2019-12-12 14:19:13 +08:00
|
|
|
|
|
|
|
x-ccache: &ccache
|
|
|
|
CCACHE_COMPILERCHECK: content
|
|
|
|
CCACHE_COMPRESS: 1
|
|
|
|
CCACHE_COMPRESSLEVEL: 5
|
|
|
|
CCACHE_MAXSIZE: 2G
|
|
|
|
CCACHE_DIR: /build/ccache
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mysql:5.6
|
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: 123456
|
|
|
|
networks:
|
|
|
|
milvus:
|
|
|
|
aliases:
|
|
|
|
- "mysql"
|
|
|
|
|
|
|
|
ubuntu-core:
|
|
|
|
image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-core
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ci/docker/ubuntu-${UBUNTU}-core.dockerfile
|
|
|
|
cache_from:
|
|
|
|
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-core
|
|
|
|
shm_size: 2G
|
|
|
|
environment:
|
|
|
|
<<: *ccache
|
|
|
|
volumes: &ubuntu-volumes
|
|
|
|
- .:/milvus:delegated
|
|
|
|
- ${ARCH}-ubuntu-${UBUNTU}-cache:/build:delegated
|
|
|
|
networks:
|
|
|
|
- milvus
|
2019-12-14 14:01:04 +08:00
|
|
|
command: &ubuntu-command >
|
|
|
|
/bin/bash -c "
|
|
|
|
/milvus/ci/scripts/build.sh -t Release -o ${MILVUS_INSTALL_PREFIX} -l -u -c
|
2019-12-16 17:44:16 +08:00
|
|
|
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql"
|
2019-12-12 14:19:13 +08:00
|
|
|
|
2019-12-14 11:39:52 +08:00
|
|
|
centos-core:
|
|
|
|
image: ${REPO}:${ARCH}-centos-${CENTOS}-core
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ci/docker/centos-${CENTOS}-core.dockerfile
|
|
|
|
cache_from:
|
|
|
|
- ${REPO}:${ARCH}-centos-${CENTOS}-core
|
|
|
|
shm_size: 2G
|
|
|
|
environment:
|
|
|
|
<<: *ccache
|
2019-12-14 11:42:58 +08:00
|
|
|
volumes: ¢os-volumes
|
2019-12-14 11:39:52 +08:00
|
|
|
- .:/milvus:delegated
|
|
|
|
- ${ARCH}-centos-${CENTOS}-cache:/build:delegated
|
|
|
|
networks:
|
|
|
|
- milvus
|
2019-12-14 14:01:04 +08:00
|
|
|
command: ¢os-command >
|
|
|
|
/bin/bash -c "
|
2019-12-14 14:44:37 +08:00
|
|
|
source scl_source enable devtoolset-7
|
|
|
|
source scl_source enable llvm-toolset-7.0
|
2019-12-14 14:01:04 +08:00
|
|
|
/milvus/ci/scripts/build.sh -t Release -o ${MILVUS_INSTALL_PREFIX} -l -u -c
|
2019-12-16 17:44:16 +08:00
|
|
|
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql"
|
2019-12-14 11:39:52 +08:00
|
|
|
|
2019-12-12 14:19:13 +08:00
|
|
|
networks:
|
|
|
|
milvus:
|