mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
952f34352a
* enable build milvus on centos7 * Update build enviroment Centos7 dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * add centos7_build_deps.sh * add centos7 build cpu version enviroment * add centos7 on github actions * fix bug * fix bug * fix bug * update ci/docker/centos-7-core.dockerfile * fix github actions bug * update centos7 case on github actions * update docker-compose.yml * debug centos case on github actions * debug centos case on github actions * add centos7 deploy dockerfile
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
version: '3.5'
|
|
|
|
volumes:
|
|
amd64-ubuntu-18.04-cache:
|
|
amd64-centos-7-cache:
|
|
|
|
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
|
|
command: &ubuntu-command >
|
|
/bin/bash -c "
|
|
/milvus/ci/scripts/build.sh -t Release -o ${MILVUS_INSTALL_PREFIX} -l -u -c
|
|
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql"
|
|
|
|
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
|
|
volumes: ¢os-volumes
|
|
- .:/milvus:delegated
|
|
- ${ARCH}-centos-${CENTOS}-cache:/build:delegated
|
|
networks:
|
|
- milvus
|
|
command: ¢os-command >
|
|
/bin/bash -c "
|
|
source scl_source enable devtoolset-7
|
|
source scl_source enable llvm-toolset-7.0
|
|
/milvus/ci/scripts/build.sh -t Release -o ${MILVUS_INSTALL_PREFIX} -l -u -c
|
|
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql"
|
|
|
|
networks:
|
|
milvus:
|