mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 12:29:36 +08:00
792f0679e5
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
49 lines
1.4 KiB
YAML
49 lines
1.4 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}-${DATE_VERSION}
|
|
network_mode: "host"
|
|
build:
|
|
context: .
|
|
dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
|
|
cache_from:
|
|
- ${REPO}:${ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
|
|
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 "
|
|
make build-cpp && make verifiers && make unittest"
|
|
|
|
gdbserver:
|
|
image: ${REPO}:${ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
|
|
build:
|
|
context: .
|
|
dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
|
|
cache_from:
|
|
- ${REPO}:${ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
|
|
security_opt: # options needed for gdb debugging
|
|
- seccomp:unconfined
|
|
- apparmor:unconfined
|
|
environment:
|
|
<<: *ccache
|
|
volumes:
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu${UBUNTU}-gdbserver-cache:/ccache:delegated
|
|
container_name: debugger
|
|
entrypoint: ["/usr/sbin/sshd", "-D"]
|
|
ports:
|
|
- "7776:22"
|
|
- "7777:7777"
|