Change volumes with pytest docker-compose (#5247)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
pull/5250/head
quicksilver 2021-05-17 15:29:50 +08:00 committed by GitHub
parent 1dabbfc835
commit 16ad186874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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: