mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
d66d48c6b6
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
version: '3.5'
|
|
|
|
x-ccache: &ccache
|
|
CCACHE_COMPILERCHECK: content
|
|
CCACHE_COMPRESS: 1
|
|
CCACHE_COMPRESSLEVEL: 5
|
|
CCACHE_MAXSIZE: 2G
|
|
CCACHE_DIR: /ccache
|
|
|
|
services:
|
|
ubuntu:
|
|
image: ${REPO}:${ARCH}-ubuntu${UBUNTU}
|
|
build:
|
|
context: .
|
|
dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
|
|
cache_from:
|
|
- ${REPO}:${ARCH}-ubuntu${UBUNTU}
|
|
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 "
|
|
/milvus-distributed/scripts/core_build.sh -u && \
|
|
go build -o /milvus-distributed/cmd/writer/writer /milvus-distributed/cmd/writer/writer.go && \
|
|
go build -o /milvus-distributed/cmd/reader/reader /milvus-distributed/cmd/reader/reader.go && \
|
|
go build -o /milvus-distributed/cmd/master/master /milvus-distributed/cmd/master/master.go && \
|
|
go build -o /milvus-distributed/cmd/proxy/proxy /milvus-distributed/cmd/proxy/proxy.go"
|