2020-10-15 21:31:50 +08:00
|
|
|
version: '3.5'
|
|
|
|
|
2020-10-27 15:51:16 +08:00
|
|
|
x-ccache: &ccache
|
|
|
|
CCACHE_COMPILERCHECK: content
|
|
|
|
CCACHE_COMPRESS: 1
|
|
|
|
CCACHE_COMPRESSLEVEL: 5
|
|
|
|
CCACHE_MAXSIZE: 2G
|
|
|
|
CCACHE_DIR: /ccache
|
2020-10-27 12:01:27 +08:00
|
|
|
|
2020-10-27 15:51:16 +08:00
|
|
|
services:
|
|
|
|
ubuntu:
|
2020-11-02 10:42:09 +08:00
|
|
|
image: ${REPO}:${ARCH}-ubuntu${UBUNTU}-${SHOW_DATE}
|
2020-10-27 15:51:16 +08:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
|
|
|
|
cache_from:
|
2020-11-02 18:49:11 +08:00
|
|
|
- ${REPO}:${ARCH}-ubuntu${UBUNTU}-${SHOW_DATE}
|
2020-10-27 15:51:16 +08:00
|
|
|
shm_size: 2G
|
|
|
|
environment:
|
|
|
|
<<: *ccache
|
|
|
|
volumes: &ubuntu-volumes
|
|
|
|
- .:/milvus-distributed:delegated
|
|
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu${UBUNTU}-cache:/ccache:delegated
|
|
|
|
working_dir: "/milvus-distributed"
|
|
|
|
command: &ubuntu-command >
|
|
|
|
/bin/bash -c "
|
2020-11-04 16:28:14 +08:00
|
|
|
make verifiers && make all"
|