Skip to content

Commit

Permalink
🐛(dockerfiles) install pip for python 2.7
Browse files Browse the repository at this point in the history
As python 2.7 is used in all ubuntu images, we need to get matching
pip version (pypa/get-pip#82)
  • Loading branch information
kernicPanel authored and sampaccoud committed Jan 29, 2021
1 parent 08c4f84 commit c8d4714
Show file tree
Hide file tree
Showing 19 changed files with 116 additions and 34 deletions.
96 changes: 80 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,33 @@ jobs:
#
# Note that the job name should match the EDX_RELEASE value

# No changes detected for dogwood.3-bare
# Run jobs for the dogwood.3-bare release
dogwood.3-bare:
<<: [*defaults, *build_steps]
# Run jobs for the dogwood.3-fun release
dogwood.3-fun:
<<: [*defaults, *build_steps]
# No changes detected for eucalyptus.3-bare
# No changes detected for eucalyptus.3-wb
# No changes detected for hawthorn.1-bare
# No changes detected for hawthorn.1-oee
# No changes detected for ironwood.2-bare
# No changes detected for ironwood.2-oee
# No changes detected for master.0-bare
# Run jobs for the eucalyptus.3-bare release
eucalyptus.3-bare:
<<: [*defaults, *build_steps]
# Run jobs for the eucalyptus.3-wb release
eucalyptus.3-wb:
<<: [*defaults, *build_steps]
# Run jobs for the hawthorn.1-bare release
hawthorn.1-bare:
<<: [*defaults, *build_steps]
# Run jobs for the hawthorn.1-oee release
hawthorn.1-oee:
<<: [*defaults, *build_steps]
# Run jobs for the ironwood.2-bare release
ironwood.2-bare:
<<: [*defaults, *build_steps]
# Run jobs for the ironwood.2-oee release
ironwood.2-oee:
<<: [*defaults, *build_steps]
# Run jobs for the master.0-bare release
master.0-bare:
<<: [*defaults, *build_steps]

# Hub job
hub:
Expand Down Expand Up @@ -262,21 +278,69 @@ workflows:

# Build jobs

# No changes detected so no job to run for dogwood.3-bare
# Run jobs for the dogwood.3-bare release
- dogwood.3-bare:
requires:
- check-configuration
filters:
tags:
ignore: /.*/
# Run jobs for the dogwood.3-fun release
- dogwood.3-fun:
requires:
- check-configuration
filters:
tags:
ignore: /.*/
# No changes detected so no job to run for eucalyptus.3-bare
# No changes detected so no job to run for eucalyptus.3-wb
# No changes detected so no job to run for hawthorn.1-bare
# No changes detected so no job to run for hawthorn.1-oee
# No changes detected so no job to run for ironwood.2-bare
# No changes detected so no job to run for ironwood.2-oee
# No changes detected so no job to run for master.0-bare
# Run jobs for the eucalyptus.3-bare release
- eucalyptus.3-bare:
requires:
- check-configuration
filters:
tags:
ignore: /.*/
# Run jobs for the eucalyptus.3-wb release
- eucalyptus.3-wb:
requires:
- check-configuration
filters:
tags:
ignore: /.*/
# Run jobs for the hawthorn.1-bare release
- hawthorn.1-bare:
requires:
- check-configuration
filters:
tags:
ignore: /.*/
# Run jobs for the hawthorn.1-oee release
- hawthorn.1-oee:
requires:
- check-configuration
filters:
tags:
ignore: /.*/
# Run jobs for the ironwood.2-bare release
- ironwood.2-bare:
requires:
- check-configuration
filters:
tags:
ignore: /.*/
# Run jobs for the ironwood.2-oee release
- ironwood.2-oee:
requires:
- check-configuration
filters:
tags:
ignore: /.*/
# Run jobs for the master.0-bare release
- master.0-bare:
requires:
- check-configuration
filters:
tags:
ignore: /.*/

# We are pushing to Docker only images that are the result of a tag respecting the pattern:
# **{branch-name}-x.y.z**
Expand Down
2 changes: 2 additions & 0 deletions releases/dogwood/3/bare/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ release.

## [Unreleased]

- Fix pip install for python 2.7

## [dogwood.3-1.3.1] - 2020-11-10

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions releases/dogwood/3/bare/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ WORKDIR /downloads
RUN apt-get update && \
apt-get install -y curl

# Download pip installer
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/get-pip.py
# Download pip installer for python 2.7
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py

# Download edxapp release
# Get default EDX_RELEASE_REF value (defined on top)
Expand Down
2 changes: 2 additions & 0 deletions releases/dogwood/3/fun/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ release.

## [Unreleased]

- Fix pip install for python 2.7

## [dogwood.3-fun-1.18.2] - 2021-01-18

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions releases/dogwood/3/fun/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ WORKDIR /downloads
RUN apt-get update && \
apt-get install -y curl

# Download pip installer
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/get-pip.py
# Download pip installer for python 2.7
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py

# Download edxapp release
# Get default EDX_RELEASE_REF value (defined on top)
Expand Down
2 changes: 2 additions & 0 deletions releases/eucalyptus/3/bare/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ release.

## [Unreleased]

- Fix pip install for python 2.7

## [eucalyptus.3-1.2.0] - 2020-05-14

### Added
Expand Down
4 changes: 2 additions & 2 deletions releases/eucalyptus/3/bare/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ WORKDIR /downloads
RUN apt-get update && \
apt-get install -y curl

# Download pip installer
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/get-pip.py
# Download pip installer for python 2.7
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py

# Download edxapp release
# Get default EDX_RELEASE_REF value (defined on top)
Expand Down
2 changes: 2 additions & 0 deletions releases/eucalyptus/3/wb/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ release.

## [Unreleased]

- Fix pip install for python 2.7

## [eucalyptus.3-wb-1.9.3] - 2020-09-08

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions releases/eucalyptus/3/wb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ WORKDIR /downloads
RUN apt-get update && \
apt-get install -y curl

# Download pip installer
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/get-pip.py
# Download pip installer for python 2.7
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py

# Download edxapp release
# Get default EDX_RELEASE_REF value (defined on top)
Expand Down
2 changes: 2 additions & 0 deletions releases/hawthorn/1/bare/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ release.

## [Unreleased]

- Fix pip install for python 2.7

## [hawthorn.1-3.3.0] - 2020-05-14

### Added
Expand Down
4 changes: 2 additions & 2 deletions releases/hawthorn/1/bare/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ WORKDIR /downloads
RUN apt-get update && \
apt-get install -y curl

# Download pip installer
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/get-pip.py
# Download pip installer for python 2.7
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py

# Download edxapp release
# Get default EDX_RELEASE_REF value (defined on top)
Expand Down
2 changes: 2 additions & 0 deletions releases/hawthorn/1/oee/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ release.

## [Unreleased]

- Fix pip install for python 2.7

## [hawthorn.1-oee-3.3.3] - 2020-11-20

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions releases/hawthorn/1/oee/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ WORKDIR /downloads
RUN apt-get update && \
apt-get install -y curl

# Download pip installer
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/get-pip.py
# Download pip installer for python 2.7
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py

# Download edxapp release
# Get default EDX_RELEASE_REF value (defined on top)
Expand Down
2 changes: 2 additions & 0 deletions releases/ironwood/2/bare/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ release.

## [Unreleased]

- Fix pip install for python 2.7

## [ironwood.2-1.0.0] - 2020-09-10

- First release of an `ironwood.2-bare` Docker image.
4 changes: 2 additions & 2 deletions releases/ironwood/2/bare/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ WORKDIR /downloads
RUN apt-get update && \
apt-get install -y curl

# Download pip installer
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/get-pip.py
# Download pip installer for python 2.7
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py

# Download edxapp release
# Get default EDX_RELEASE_REF value (defined on top)
Expand Down
2 changes: 2 additions & 0 deletions releases/ironwood/2/oee/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ release.

## [Unreleased]

- Fix pip install for python 2.7

## [ironwood.2-oee-1.0.3] - 2020-11-20

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions releases/ironwood/2/oee/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ WORKDIR /downloads
RUN apt-get update && \
apt-get install -y curl

# Download pip installer
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/get-pip.py
# Download pip installer for python 2.7
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py

# Download edxapp release
# Get default EDX_RELEASE_REF value (defined on top)
Expand Down
2 changes: 2 additions & 0 deletions releases/master/0/bare/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ release.
## [Unreleased]

- Fix pip install for python 2.7

[unreleased]: https://github.com/openfun/openedx-docker
4 changes: 2 additions & 2 deletions releases/master/0/bare/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ WORKDIR /downloads
RUN apt-get update && \
apt-get install -y curl

# Download pip installer
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/get-pip.py
# Download pip installer for python 2.7
RUN curl -sLo get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py

# Download edxapp release
# Get default EDX_RELEASE_REF value (defined on top)
Expand Down

0 comments on commit c8d4714

Please sign in to comment.