Skip to content

Commit

Permalink
Fix missing setuptools when running in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Nov 13, 2023
1 parent 65eccb6 commit 09da266
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "*"
Expand Down

0 comments on commit 09da266

Please sign in to comment.