Skip to content

Commit

Permalink
Workaround for yaml/pyyaml#601
Browse files Browse the repository at this point in the history
  • Loading branch information
VannTen committed Dec 8, 2023
1 parent b57168a commit 4fcb144
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipeline.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ WORKDIR /kubespray

RUN --mount=type=bind,target=./requirements-2.12.txt,src=./requirements-2.12.txt \
--mount=type=bind,target=./tests/requirements-2.12.txt,src=./tests/requirements-2.12.txt \
--mount=type=bind,target=./tests/constraints.txt,src=./tests/constraints.txt \
--mount=type=bind,target=./roles/kubespray-defaults/defaults/main.yaml,src=./roles/kubespray-defaults/defaults/main.yaml \
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 \
&& pip install --no-compile --no-cache-dir pip -U \
&& pip install --no-compile --no-cache-dir -r tests/requirements-2.12.txt \
&& pip install --no-compile --no-cache-dir -r tests/requirements-2.12.txt -c tests/constraints.txt \
&& KUBE_VERSION=$(sed -n 's/^kube_version: //p' roles/kubespray-defaults/defaults/main.yaml) \
&& curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl -o /usr/local/bin/kubectl \
&& echo $(curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl.sha256) /usr/local/bin/kubectl | sha256sum --check \
Expand Down
1 change: 1 addition & 0 deletions tests/constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cython<3

0 comments on commit 4fcb144

Please sign in to comment.