mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
a6690dbc99
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
91 lines
2.6 KiB
YAML
91 lines
2.6 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}
|
|
# Build devcontainer
|
|
build:
|
|
context: .
|
|
dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
|
|
cache_from:
|
|
- ${REPO}:${ARCH}-ubuntu${UBUNTU}-${LATEST_DATE_VERSION}
|
|
# user: {{ CURRENT_ID }}
|
|
shm_size: 2G
|
|
environment:
|
|
<<: *ccache
|
|
PULSAR_ADDRESS: ${PULSAR_ADDRESS}
|
|
ETCD_ADDRESS: ${ETCD_ADDRESS}
|
|
MINIO_ADDRESS: ${MINIO_ADDRESS}
|
|
volumes: &ubuntu-volumes
|
|
- .:/go/src/github.com/zilliztech/milvus-distributed:delegated
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu${UBUNTU}-ccache:/ccache:delegated
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu${UBUNTU}-go-mod:/go/pkg/mod:delegated
|
|
working_dir: "/go/src/github.com/zilliztech/milvus-distributed"
|
|
# Command
|
|
command: &ubuntu-command >
|
|
/bin/bash -c "
|
|
make check-proto-product && make verifiers && make unittest"
|
|
networks:
|
|
- milvus
|
|
|
|
# gdbserver:
|
|
# image: ${REPO}:${ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
|
|
# build:
|
|
# context: .
|
|
# dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
|
|
# cache_from:
|
|
# - ${REPO}:${ARCH}-ubuntu${UBUNTU}-${LATEST_DATE_VERSION}
|
|
# security_opt: # options needed for gdb debugging
|
|
# - seccomp:unconfined
|
|
# - apparmor:unconfined
|
|
# environment:
|
|
# PULSAR_ADDRESS: ${PULSAR_ADDRESS}
|
|
# ETCD_ADDRESS: ${ETCD_ADDRESS}
|
|
# MINIO_ADDRESS: ${MINIO_ADDRESS}
|
|
# volumes:
|
|
# - .:/go/src/github.com/zilliztech/milvus-distributed:delegated
|
|
# - ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu${UBUNTU}-gdbserver-home:/home/debugger:delegated
|
|
# container_name: debugger
|
|
# entrypoint: ["/usr/sbin/sshd", "-D"]
|
|
# ports:
|
|
# - "7776:22"
|
|
# - "7777:7777"
|
|
# networks:
|
|
# - milvus
|
|
|
|
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
|
|
networks:
|
|
- milvus
|
|
|
|
minio:
|
|
image: minio/minio:RELEASE.2020-12-03T00-03-10Z
|
|
environment:
|
|
MINIO_ACCESS_KEY: minioadmin
|
|
MINIO_SECRET_KEY: minioadmin
|
|
command: minio server /minio_data
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 30s
|
|
timeout: 20s
|
|
retries: 3
|
|
networks:
|
|
- milvus
|
|
|
|
networks:
|
|
milvus:
|