Skip to content

Commit

Permalink
[django] Fix Coverage Build by Using Base Runner Provided Python
Browse files Browse the repository at this point in the history
Replaces the ad-hoc workaround using the Dead Snakes PPA to install
Python 3.10, with the upgraded Python 3.10 version provided by
the base-builder and base-runner images, the latter of which resolves
the issue mentioned in google#11419.
Fixes: google#9638
  • Loading branch information
DaveLak committed Jun 4, 2024
1 parent 9383c87 commit c724d61
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions projects/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,7 @@

FROM gcr.io/oss-fuzz-base/base-builder-python

RUN apt-get update -y \
&& apt-get install -y libgdal26 software-properties-common \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt-get install -y python3.10 python3.10-dev \
&& ln --force -s /usr/bin/python3.10 /usr/local/bin/python3 \
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python3 \
&& python3 -m pip install -v --no-cache-dir "atheris>=2.1.1" "pyinstaller==5.0.1" "coverage==6.3.2" \
&& rm -rf /var/lib/apt/lists/*

RUN python3 -m pip install cython 'pyinstaller==6.7.0'
RUN git clone --depth 1 https://github.com/django/django.git
RUN git clone --depth 1 https://github.com/django/django-fuzzers.git

Expand Down

0 comments on commit c724d61

Please sign in to comment.