2020-10-15 13:31:50 +00:00
|
|
|
version: '3.5'
|
|
|
|
|
2020-10-27 07:51:16 +00:00
|
|
|
x-ccache: &ccache
|
|
|
|
CCACHE_COMPILERCHECK: content
|
|
|
|
CCACHE_COMPRESS: 1
|
|
|
|
CCACHE_COMPRESSLEVEL: 5
|
|
|
|
CCACHE_MAXSIZE: 2G
|
|
|
|
CCACHE_DIR: /ccache
|
2020-10-27 04:01:27 +00:00
|
|
|
|
2020-10-27 07:51:16 +00:00
|
|
|
services:
|
|
|
|
ubuntu:
|
2020-11-13 04:27:41 +00:00
|
|
|
image: ${REPO}:${ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
|
2020-10-27 07:51:16 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
|
|
|
|
cache_from:
|
2020-11-20 09:27:04 +00:00
|
|
|
- ${REPO}:${ARCH}-ubuntu${UBUNTU}-${LATEST_DATE_VERSION}
|
2020-10-27 07:51:16 +00:00
|
|
|
shm_size: 2G
|
|
|
|
environment:
|
|
|
|
<<: *ccache
|
2020-11-21 07:06:46 +00:00
|
|
|
PULSAR_ADDRESS: ${PULSAR_ADDRESS}
|
|
|
|
ETCD_ADDRESS: ${ETCD_ADDRESS}
|
|
|
|
MASTER_ADDRESS: ${MASTER_ADDRESS}
|
2020-10-27 07:51:16 +00:00
|
|
|
volumes: &ubuntu-volumes
|
2020-11-17 02:06:48 +00:00
|
|
|
- .:/go/src/github.com/zilliztech/milvus-distributed:delegated
|
2020-10-27 07:51:16 +00:00
|
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu${UBUNTU}-cache:/ccache:delegated
|
2020-11-17 02:06:48 +00:00
|
|
|
working_dir: "/go/src/github.com/zilliztech/milvus-distributed"
|
2020-10-27 07:51:16 +00:00
|
|
|
command: &ubuntu-command >
|
|
|
|
/bin/bash -c "
|
2020-11-18 02:07:05 +00:00
|
|
|
make check-proto-product && make verifiers && make unittest"
|
2020-11-21 09:53:05 +00:00
|
|
|
networks:
|
|
|
|
- milvus
|
2020-11-13 04:27:41 +00:00
|
|
|
|
|
|
|
gdbserver:
|
|
|
|
image: ${REPO}:${ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
|
|
|
|
cache_from:
|
2020-11-20 09:27:04 +00:00
|
|
|
- ${REPO}:${ARCH}-ubuntu${UBUNTU}-${LATEST_DATE_VERSION}
|
2020-11-13 04:27:41 +00:00
|
|
|
security_opt: # options needed for gdb debugging
|
|
|
|
- seccomp:unconfined
|
|
|
|
- apparmor:unconfined
|
2020-11-21 07:06:46 +00:00
|
|
|
environment:
|
|
|
|
PULSAR_ADDRESS: ${PULSAR_ADDRESS}
|
|
|
|
ETCD_ADDRESS: ${ETCD_ADDRESS}
|
|
|
|
MASTER_ADDRESS: ${MASTER_ADDRESS}
|
2020-11-13 04:27:41 +00:00
|
|
|
volumes:
|
2020-11-17 02:06:48 +00:00
|
|
|
- .:/go/src/github.com/zilliztech/milvus-distributed:delegated
|
2020-11-16 13:11:52 +00:00
|
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu${UBUNTU}-gdbserver-home:/home/debugger:delegated
|
2020-11-13 04:27:41 +00:00
|
|
|
container_name: debugger
|
|
|
|
entrypoint: ["/usr/sbin/sshd", "-D"]
|
|
|
|
ports:
|
|
|
|
- "7776:22"
|
|
|
|
- "7777:7777"
|
2020-11-21 09:53:05 +00:00
|
|
|
networks:
|
|
|
|
- milvus
|
|
|
|
|
2020-11-28 08:43:39 +00:00
|
|
|
etcd:
|
|
|
|
image: quay.io/coreos/etcd:v3.4.13
|
|
|
|
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379
|
|
|
|
networks:
|
|
|
|
- milvus
|
|
|
|
|
|
|
|
pulsar:
|
|
|
|
image: apachepulsar/pulsar:2.6.1
|
|
|
|
command: bin/pulsar standalone
|
2020-12-03 11:00:11 +00:00
|
|
|
networks:
|
|
|
|
- milvus
|
|
|
|
|
2020-11-21 09:53:05 +00:00
|
|
|
networks:
|
|
|
|
milvus:
|