Skip to content

Commit

Permalink
chore: removed distutils from dockerfiles having python3.12
Browse files Browse the repository at this point in the history
chore: removed test code
  • Loading branch information
huniafatima-arbi committed Dec 9, 2024
1 parent 89b2766 commit 3c9c0ab
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 18 deletions.
1 change: 1 addition & 0 deletions .github/workflows/push-course-discovery-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branch:
description: "Target branch from which the source dockerfile from image will be sourced"


schedule:
- cron: "0 4 * * 1-5" # UTC Time

Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/course-discovery.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ RUN apt-get update && \
libcairo2-dev \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils && \
python${PYTHON_VERSION}-dev && \
rm -rf /var/lib/apt/lists/*

# Use UTF-8.
Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/edx-exams.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
curl \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/edx-notes-api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
curl \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils && \
python${PYTHON_VERSION}-dev && \
rm -rf /var/lib/apt/lists/*

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/enterprise-access.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
libsqlite3-dev \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/enterprise-subsidy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
libsqlite3-dev \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/license-manager.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
libsqlite3-dev \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev

# Use virtualenv pypi package with Python 3.12
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION}
Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/portal-designer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
curl \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev

RUN pip install --upgrade pip setuptools
# delete apt package lists because we do not need them inflating our image
Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/program-intent-engagement.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
curl \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev


# need to use virtualenv pypi package with Python 3.12
Expand Down
3 changes: 1 addition & 2 deletions dockerfiles/registrar.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ RUN apt-get install -qy \
curl \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils
python${PYTHON_VERSION}-dev

# need to use virtualenv pypi package with Python 3.12
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION}
Expand Down

0 comments on commit 3c9c0ab

Please sign in to comment.