Skip to content

Commit

Permalink
chore: removed distutils package from dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
huniafatima-99 committed Dec 9, 2024
1 parent 89b2766 commit c469f71
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/push-course-discovery-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
inputs:
branch:
description: "Target branch from which the source dockerfile from image will be sourced"
pull_request:
branches:
- '**'

schedule:
- cron: "0 4 * * 1-5" # UTC Time
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push-edx-exams-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
schedule:
- cron: "0 4 * * 1-5" # UTC Time

pull_request:
branches:
- '**'

jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push-edx-notes-api-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
schedule:
- cron: "0 4 * * 1-5" # UTC Time

pull_request:
branches:
- '**'

jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push-enterprise-access-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
schedule:
- cron: "0 4 * * 1-5" # UTC Time

pull_request:
branches:
- '**'

jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push-enterprise-subsidy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
schedule:
- cron: "0 4 * * 1-5" # UTC Time

pull_request:
branches:
- '**'

jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push-license-manager-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
branch:
description: "Target branch from which the source dockerfile from image will be sourced"

pull_request:
branches:
- '**'

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

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push-program-intent-engagement-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
schedule:
- cron: "0 4 * * 1-5" # UTC Time

pull_request:
branches:
- '**'

jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push-registrar-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
branch:
description: "Target branch from which the source dockerfile from image will be sourced"

pull_request:
branches:
- '**'

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

Expand Down
1 change: 0 additions & 1 deletion dockerfiles/course-discovery.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ RUN apt-get update && \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils && \
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
1 change: 0 additions & 1 deletion dockerfiles/edx-notes-api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ RUN apt-get update && apt-get -qy install --no-install-recommends \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-distutils && \
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 c469f71

Please sign in to comment.