From bc833ca7efdd11a7b35574788213c2c366800efb Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Mon, 18 Sep 2023 14:51:18 -0400 Subject: [PATCH] fix: run tests script copying local env This PR fixes the scripts/run_tests script and its dockerfiles to make sure it doesn't copy local .venv directories into the container image. This was causing the script to fail. Signed-off-by: Daniel Bluhm --- .dockerignore | 1 + docker/Dockerfile.test | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 7ea06888de..c4b697151c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -9,3 +9,4 @@ test-reports .python-version docker env +.venv diff --git a/docker/Dockerfile.test b/docker/Dockerfile.test index 94c05cfc8c..02e56380a3 100644 --- a/docker/Dockerfile.test +++ b/docker/Dockerfile.test @@ -12,8 +12,9 @@ WORKDIR /usr/src/app RUN pip install --no-cache-dir poetry ADD ./README.md pyproject.toml ./poetry.lock ./ +RUN mkdir aries_cloudagent && touch aries_cloudagent/__init__.py -RUN poetry install --no-root --no-directory -E "askar bbs" +RUN poetry install --no-directory -E "askar bbs" --with=dev ADD . .