milvus/docker-compose.yml
quicksilver d1b79da6d8 Add Github Actions and remove Travis CI (#752)
* add github actions

* add amd64-ubuntu-18.04-cache volumes

* update core.yml in github actions

* update ci/docker/ubuntu-18.04-core.dockerfile

* update CI scripts file

* update github actions

* update github actions

* update github actions

* remove Travis CI

* update docker-compose.yml

* update ci scripts files

* update docker-compose.yml
2019-12-12 14:19:13 +08:00

49 lines
1.0 KiB
YAML

version: '3.5'
volumes:
amd64-ubuntu-18.04-cache:
x-ccache: &ccache
CCACHE_COMPILERCHECK: content
CCACHE_COMPRESS: 1
CCACHE_COMPRESSLEVEL: 5
CCACHE_MAXSIZE: 2G
CCACHE_DIR: /build/ccache
x-command: &cpp-command >
/bin/bash -c "
/milvus/ci/scripts/build.sh -o ${MILVUS_INSTALL_PREFIX} -l -u -c
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql"
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: *cpp-command
networks:
milvus: