diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..edcc81d7 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +.make-poetry-sync +.make-poetry-sync-no-dev +.github +.mypy_cache +.pytest_cache +.poetry.lock \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ea891dd6..6c67e16f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ Bind kubeconfig to /opt/kubeconfig \ Bind a dir to /test-run-results to get reports " RUN useradd --no-log-init -u 1001 -g root -m testsuite -RUN dnf install -y python311 pip make git && dnf clean all +RUN dnf install -y python3.11 python3.11-pip make git && dnf clean all RUN curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz >/tmp/oc.tgz && \ tar xzf /tmp/oc.tgz -C /usr/local/bin && \ @@ -15,7 +15,7 @@ RUN curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/opensh RUN curl -L https://github.com/cloudflare/cfssl/releases/download/v1.6.3/cfssl_1.6.3_linux_amd64 >/usr/bin/cfssl && \ chmod +x /usr/bin/cfssl -RUN python3 -m pip --no-cache-dir install poetry +RUN python3.11 -m pip --no-cache-dir install poetry WORKDIR /opt/workdir/kuadrant-testsuite diff --git a/pyproject.toml b/pyproject.toml index 05a2528c..3e8819c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,7 @@ readme = "README.md" [tool.poetry.group.main.dependencies] python = "^3.11" +setuptools = "*" # workaround: python-keycloak depends on it typing_extensions = "*" pytest-xdist = "*" pytest = "*"