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:
|
2021-04-29 11:28:27 +08:00
|
|
|
image: ${IMAGE_REPO}/milvus-dev:${IMAGE_ARCH}-ubuntu${UBUNTU}-${DATE_VERSION}
|
2021-01-06 18:16:37 +08:00
|
|
|
# Build devcontainer
|
2020-10-27 15:51:16 +08:00
|
|
|
build:
|
|
|
|
context: .
|
2021-04-27 19:27:50 +08:00
|
|
|
dockerfile: build/docker/builder/cpu/ubuntu${UBUNTU}/Dockerfile
|
2020-10-27 15:51:16 +08:00
|
|
|
cache_from:
|
2021-04-29 11:28:27 +08:00
|
|
|
- ${IMAGE_REPO}/milvus-dev:${IMAGE_ARCH}-ubuntu${UBUNTU}-${LATEST_DATE_VERSION}
|
2021-01-06 18:16:37 +08:00
|
|
|
# user: {{ CURRENT_ID }}
|
2020-10-27 15:51:16 +08:00
|
|
|
shm_size: 2G
|
|
|
|
environment:
|
|
|
|
<<: *ccache
|
2020-11-21 15:06:46 +08:00
|
|
|
PULSAR_ADDRESS: ${PULSAR_ADDRESS}
|
2021-06-11 22:04:41 +08:00
|
|
|
ETCD_ENDPOINTS: ${ETCD_ENDPOINTS}
|
2020-12-07 15:22:20 +08:00
|
|
|
MINIO_ADDRESS: ${MINIO_ADDRESS}
|
2020-10-27 15:51:16 +08:00
|
|
|
volumes: &ubuntu-volumes
|
2021-04-22 14:45:57 +08:00
|
|
|
- .:/go/src/github.com/milvus-io/milvus:delegated
|
2021-04-29 11:28:27 +08:00
|
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${IMAGE_ARCH}-ubuntu${UBUNTU}-ccache:/ccache:delegated
|
|
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${IMAGE_ARCH}-ubuntu${UBUNTU}-go-mod:/go/pkg/mod:delegated
|
|
|
|
- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${IMAGE_ARCH}-ubuntu${UBUNTU}-vscode-extensions:/home/milvus/.vscode-server/extensions:delegated
|
2021-04-22 14:45:57 +08:00
|
|
|
working_dir: "/go/src/github.com/milvus-io/milvus"
|
2021-01-06 18:16:37 +08:00
|
|
|
# Command
|
2020-10-27 15:51:16 +08:00
|
|
|
command: &ubuntu-command >
|
|
|
|
/bin/bash -c "
|
2020-11-18 10:07:05 +08:00
|
|
|
make check-proto-product && make verifiers && make unittest"
|
2020-11-21 17:53:05 +08:00
|
|
|
networks:
|
|
|
|
- milvus
|
2020-11-13 12:27:41 +08:00
|
|
|
|
2020-11-28 16:43:39 +08: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 19:00:11 +08:00
|
|
|
networks:
|
|
|
|
- milvus
|
|
|
|
|
2020-12-07 15:22:20 +08:00
|
|
|
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
|
|
|
|
|
2021-01-11 18:35:54 +08:00
|
|
|
jaeger:
|
|
|
|
image: jaegertracing/all-in-one:latest
|
|
|
|
networks:
|
|
|
|
- milvus
|
|
|
|
|
2020-11-21 17:53:05 +08:00
|
|
|
networks:
|
|
|
|
milvus:
|