From 742439269e5181c4265ec345ceb6c1b381dfd64f Mon Sep 17 00:00:00 2001 From: quicksilver Date: Sat, 5 Sep 2020 11:59:20 +0800 Subject: [PATCH] Update Milvus Dev Test environment (#3604) * Update Milvus Dev Test environment Signed-off-by: quicksilver * Update Milvus Dev Test environment Signed-off-by: quicksilver * update requirements.txt in test_env Signed-off-by: zw Co-authored-by: zw --- ci/jenkins/pod/testEnvironment.yaml | 2 +- docker/test_env/Dockerfile | 8 ++++---- docker/test_env/docker-entrypoint.sh | 9 --------- docker/test_env/requirements.txt | 15 +++++++++++++++ 4 files changed, 20 insertions(+), 14 deletions(-) delete mode 100755 docker/test_env/docker-entrypoint.sh create mode 100644 docker/test_env/requirements.txt diff --git a/ci/jenkins/pod/testEnvironment.yaml b/ci/jenkins/pod/testEnvironment.yaml index ff79299cbb..ffa62ab63b 100644 --- a/ci/jenkins/pod/testEnvironment.yaml +++ b/ci/jenkins/pod/testEnvironment.yaml @@ -7,7 +7,7 @@ metadata: spec: containers: - name: milvus-test-env - image: registry.zilliz.com/milvus/milvus-test-env:v0.2 + image: registry.zilliz.com/milvus/milvus-test-env:v0.3 command: - cat tty: true diff --git a/docker/test_env/Dockerfile b/docker/test_env/Dockerfile index 9a785fc1ef..3fa4935538 100644 --- a/docker/test_env/Dockerfile +++ b/docker/test_env/Dockerfile @@ -23,8 +23,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends wget apt-transp apt-get remove --purge -y && \ rm -rf /var/lib/apt/lists/* -COPY docker-entrypoint.sh /app/docker-entrypoint.sh -WORKDIR /root +COPY requirements.txt /requirements.txt -ENTRYPOINT [ "/app/docker-entrypoint.sh" ] -CMD [ "start" ] +RUN python3 -m pip install -r /requirements.txt + +WORKDIR /root diff --git a/docker/test_env/docker-entrypoint.sh b/docker/test_env/docker-entrypoint.sh deleted file mode 100755 index af9ba0ba66..0000000000 --- a/docker/test_env/docker-entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -set -e - -if [ "$1" = 'start' ]; then - tail -f /dev/null -fi - -exec "$@" \ No newline at end of file diff --git a/docker/test_env/requirements.txt b/docker/test_env/requirements.txt new file mode 100644 index 0000000000..cc77fd5b7c --- /dev/null +++ b/docker/test_env/requirements.txt @@ -0,0 +1,15 @@ +numpy>=1.18.0 +pylint==2.5.0 +pytest==4.5.0 +pytest-timeout==1.3.3 +pytest-repeat==0.8.0 +allure-pytest==2.7.0 +pytest-print==0.1.2 +pytest-level==0.1.1 +pytest-xdist==1.23.2 +scikit-learn>=0.19.1 +kubernetes==10.0.1 +grpcio>=1.22.0 +grpcio-tools>=1.22.0 +requests>=2.22.0 +ujson>=1.35