mirror of https://github.com/milvus-io/milvus.git
Change volumes with pytest docker-compose (#5247)
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>pull/5250/head
parent
1dabbfc835
commit
16ad186874
|
@ -11,7 +11,7 @@
|
|||
|
||||
FROM python:3.6.8-jessie
|
||||
|
||||
COPY ./python_test/requirements.txt /requirements.txt
|
||||
COPY ./tests/python_test/requirements.txt /requirements.txt
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir -r /requirements.txt
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ services:
|
|||
pytest:
|
||||
image: ${IMAGE_REPO}/pytest:${IMAGE_TAG}
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: ./docker/Dockerfile
|
||||
context: ../..
|
||||
dockerfile: tests/docker/Dockerfile
|
||||
cache_from:
|
||||
- ${IMAGE_REPO}/pytest:latest
|
||||
shm_size: 2G
|
||||
|
@ -13,8 +13,8 @@ services:
|
|||
SERVICE_IP: ${SERVICE_IP}
|
||||
SERVICE_PORT: ${SERVICE_PORT}
|
||||
volumes:
|
||||
- ../python_test:/pytest:delegated
|
||||
working_dir: "/pytest"
|
||||
- ../../:/milvus:delegated
|
||||
working_dir: "/milvus"
|
||||
|
||||
networks:
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue