Skip to content

Commit

Permalink
fix: update PyYAML, Cython to resolve Docker build
Browse files Browse the repository at this point in the history
An issue with the PyYAML library causes the container used to run
Taskcat to fail when installing taskcat using pip. This seems to be
caused by a regression introduced in Cython 3.0.0a10.

The issue was identified and resolved by @cormac-yobota and this commit
implements the fix proposed in issue #350.

For more details, see:
- https://bit.ly/3Ayigfi for the issue opened by @cormac-yobota
  describing the problem and the fix in the action-taskcat repository

- https://bit.ly/3CyCCW8 for the issue opened against the PyYAML project,
  describing the regression introduced in Cython 3.0.0a10

Co-authored-by: Cormac Murphy <cormac@yobota.xyz>
Associated issue: #350
  • Loading branch information
ShahradR authored Nov 11, 2024
1 parent 3f06df5 commit dc1c9fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ FROM python:3.8.13-alpine3.15

RUN apk add --no-cache python3-dev~3.9 gcc~10 libc-dev~0.7 nodejs~16 npm~8 && rm -rf /var/cache/apk/*

RUN pip3 install taskcat==0.9.23 --upgrade
RUN pip3 install --upgrade pip && \
pip3 install "Cython<3.0" "pyyaml<6" --no-build-isolation && \
pip3 install taskcat==0.9.23 --upgrade

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
Expand Down

0 comments on commit dc1c9fa

Please sign in to comment.