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-13 12:27:41 +08:00
|
|
|
image: ${REPO}:${ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
|
2020-11-09 18:47:37 +08:00
|
|
|
network_mode: "host"
|
2020-10-27 15:51:16 +08:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
|
|
|
|
cache_from:
|
2020-11-13 12:27:41 +08:00
|
|
|
- ${REPO}:${ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
|
2020-10-27 15:51:16 +08:00
|
|
|
shm_size: 2G
|
|
|
|
environment:
|
|
|
|
<<: *ccache
|
|
|
|
volumes: &ubuntu-volumes
|
2020-11-17 10:06:48 +08:00
|
|
|
- .:/go/src/github.com/zilliztech/milvus-distributed:delegated
|
2020-10-27 15:51:16 +08:00
|
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu${UBUNTU}-cache:/ccache:delegated
|
2020-11-17 10:06:48 +08:00
|
|
|
working_dir: "/go/src/github.com/zilliztech/milvus-distributed"
|
2020-10-27 15:51:16 +08:00
|
|
|
command: &ubuntu-command >
|
|
|
|
/bin/bash -c "
|
2020-11-12 17:58:05 +08:00
|
|
|
make build-cpp && make verifiers && make unittest"
|
2020-11-13 12:27:41 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
volumes:
|
2020-11-17 10:06:48 +08:00
|
|
|
- .:/go/src/github.com/zilliztech/milvus-distributed:delegated
|
2020-11-16 21:11:52 +08:00
|
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu${UBUNTU}-gdbserver-home:/home/debugger:delegated
|
2020-11-13 12:27:41 +08:00
|
|
|
container_name: debugger
|
|
|
|
entrypoint: ["/usr/sbin/sshd", "-D"]
|
|
|
|
ports:
|
|
|
|
- "7776:22"
|
|
|
|
- "7777:7777"
|