Skip to content

Commit

Permalink
🐛(dockerfiles) update requirements to fix builds
Browse files Browse the repository at this point in the history
Currently hawthorn.1 releases and master.0.bare requires py2neo 3.1.2 which is
no more available from pypi.org. So we have to patch requirements files to
install this dependency directly from its github repository.
  • Loading branch information
jbpenrath committed Sep 16, 2021
1 parent 8439a11 commit 891cc03
Show file tree
Hide file tree
Showing 10 changed files with 187 additions and 15 deletions.
42 changes: 29 additions & 13 deletions .circleci/config.yml
Expand Up @@ -164,16 +164,20 @@ 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-fun release
dogwood.3-fun:
<<: [*defaults, *build_steps]
# No changes detected for dogwood.3-fun
# 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
# 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]
# 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 master.0-bare release
master.0-bare:
<<: [*defaults, *build_steps]

# Hub job
hub:
Expand Down Expand Up @@ -263,20 +267,32 @@ workflows:
# Build jobs

# No changes detected so no job to run for dogwood.3-bare
# Run jobs for the dogwood.3-fun release
- dogwood.3-fun:
# No changes detected so no job to run for dogwood.3-fun
# No changes detected so no job to run for eucalyptus.3-bare
# No changes detected so no job to run for eucalyptus.3-wb
# 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: /.*/
# 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 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
1 change: 1 addition & 0 deletions releases/hawthorn/1/bare/CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@ release.

### Fixed

- Fix build by installing py2neo 3.1.2 from its github repository
- Fix build after get-pip.py script moved location
- Fix pip install for python 2.7

Expand Down
7 changes: 7 additions & 0 deletions releases/hawthorn/1/bare/Dockerfile
Expand Up @@ -115,6 +115,13 @@ RUN python get-pip.py

WORKDIR /edx/app/edxapp/edx-platform

# Patches
COPY patches/* /tmp/

# Patches pre-install
# Patch requirements to install py2neo==3.1.2 from github as this version has been removed from pypi.org
RUN patch -p1 < /tmp/edx-platform_hawthorn.1-bare_requirements-py2neo.patch

# Install python dependencies
RUN pip install --src /usr/local/src -r requirements/edx/base.txt
RUN pip install gunicorn==19.9.0
Expand Down
@@ -0,0 +1,45 @@
diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt
index f90b796..b5a7d62 100644
--- a/requirements/edx/base.txt
+++ b/requirements/edx/base.txt
@@ -183,7 +183,8 @@ piexif==1.0.2
pillow==3.4.0
polib==1.1.0 # via edx-i18n-tools
psutil==1.2.1
-py2neo==3.1.2
+# install py2neo==3.1.2 from github repository as 3.1.2 has been removed from pypi.org
+git+https://github.com/technige/py2neo@py2neo-3.1.2#egg=py2neo==3.1.2
pycontracts==1.7.1
pycountry==1.20
pycparser==2.18

diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt
index 4d69e60..c4662b0 100644
--- a/requirements/edx/development.txt
+++ b/requirements/edx/development.txt
@@ -238,7 +238,8 @@ pip-tools==2.0.2
pluggy==0.6.0
polib==1.1.0
psutil==1.2.1
-py2neo==3.1.2
+# install py2neo==3.1.2 from github repository as 3.1.2 has been removed from pypi.org
+git+https://github.com/technige/py2neo@py2neo-3.1.2#egg=py2neo==3.1.2
py==1.5.4
pyasn1-modules==0.2.2
pyasn1==0.4.3


diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt
index 23dd44a..44ed71e 100644
--- a/requirements/edx/testing.txt
+++ b/requirements/edx/testing.txt
@@ -227,7 +227,8 @@ pillow==3.4.0
pluggy==0.6.0 # via pytest, tox
polib==1.1.0
psutil==1.2.1
-py2neo==3.1.2
+# install py2neo==3.1.2 from github repository as 3.1.2 has been removed from pypi.org
+git+https://github.com/technige/py2neo@py2neo-3.1.2#egg=py2neo==3.1.2
py==1.5.4 # via pytest, tox
pyasn1-modules==0.2.2 # via service-identity
pyasn1==0.4.3 # via pyasn1-modules, service-identity
1 change: 1 addition & 0 deletions releases/hawthorn/1/oee/CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@ release.

### Fixed

- Fix build by installing py2neo 3.1.2 from its github repository
- Fix build after get-pip.py script moved location

## [hawthorn.1-oee-3.3.4] - 2021-03-04
Expand Down
9 changes: 7 additions & 2 deletions releases/hawthorn/1/oee/Dockerfile
Expand Up @@ -119,12 +119,17 @@ RUN python get-pip.py

WORKDIR /edx/app/edxapp/edx-platform

# Patches
COPY patches/* /tmp/

# Patches pre-install
# Patch requirements to install py2neo==3.1.2 from github as this version has been removed from pypi.org
RUN patch -p1 < /tmp/edx-platform_hawthorn.1-oee_requirements-py2neo.patch

# Install python dependencies
RUN pip install --src /usr/local/src -r requirements/edx/base.txt && \
pip install -r requirements/edx/extend.txt

# Patches
COPY patches/* /tmp/
# Patch the CMS to activate our customizable LTI Xblock
RUN patch -p1 < /tmp/edx-platform_hawthorn.1-oee.patch
# Patch ORA2 to hide empty file links
Expand Down
@@ -0,0 +1,45 @@
diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt
index f90b796..b5a7d62 100644
--- a/requirements/edx/base.txt
+++ b/requirements/edx/base.txt
@@ -183,7 +183,8 @@ piexif==1.0.2
pillow==3.4.0
polib==1.1.0 # via edx-i18n-tools
psutil==1.2.1
-py2neo==3.1.2
+# install py2neo==3.1.2 from github repository as 3.1.2 has been removed from pypi.org
+git+https://github.com/technige/py2neo@py2neo-3.1.2#egg=py2neo==3.1.2
pycontracts==1.7.1
pycountry==1.20
pycparser==2.18

diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt
index 4d69e60..c4662b0 100644
--- a/requirements/edx/development.txt
+++ b/requirements/edx/development.txt
@@ -238,7 +238,8 @@ pip-tools==2.0.2
pluggy==0.6.0
polib==1.1.0
psutil==1.2.1
-py2neo==3.1.2
+# install py2neo==3.1.2 from github repository as 3.1.2 has been removed from pypi.org
+git+https://github.com/technige/py2neo@py2neo-3.1.2#egg=py2neo==3.1.2
py==1.5.4
pyasn1-modules==0.2.2
pyasn1==0.4.3


diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt
index 23dd44a..44ed71e 100644
--- a/requirements/edx/testing.txt
+++ b/requirements/edx/testing.txt
@@ -227,7 +227,8 @@ pillow==3.4.0
pluggy==0.6.0 # via pytest, tox
polib==1.1.0
psutil==1.2.1
-py2neo==3.1.2
+# install py2neo==3.1.2 from github repository as 3.1.2 has been removed from pypi.org
+git+https://github.com/technige/py2neo@py2neo-3.1.2#egg=py2neo==3.1.2
py==1.5.4 # via pytest, tox
pyasn1-modules==0.2.2 # via service-identity
pyasn1==0.4.3 # via pyasn1-modules, service-identity
1 change: 1 addition & 0 deletions releases/master/0/bare/CHANGELOG.md
Expand Up @@ -15,6 +15,7 @@ release.

### Fixed

- Fix build by installing py2neo 3.1.2 from its github repository
- Fix build after get-pip.py script moved location
- Fix pip install for python 2.7

Expand Down
7 changes: 7 additions & 0 deletions releases/master/0/bare/Dockerfile
Expand Up @@ -115,6 +115,13 @@ RUN python get-pip.py

WORKDIR /edx/app/edxapp/edx-platform

# Patches
COPY patches/* /tmp/

# Patches pre-install
# Patch requirements to install py2neo==3.1.2 from github as this version has been removed from pypi.org
RUN patch -p1 < /tmp/edx-platform_master.0-bare_requirements-py2neo.patch

# Install python dependencies
RUN pip install --src /usr/local/src -r requirements/edx/base.txt
RUN pip install gunicorn==19.9.0
Expand Down
@@ -0,0 +1,44 @@
diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt
index 3860575..8dc42d3 100644
--- a/requirements/edx/base.txt
+++ b/requirements/edx/base.txt
@@ -184,7 +184,8 @@ piexif==1.0.2
pillow==5.2.0
polib==1.1.0 # via edx-i18n-tools
psutil==1.2.1
-py2neo==3.1.2
+# install py2neo==3.1.2 from github repository as 3.1.2 has been removed from pypi.org
+git+https://github.com/technige/py2neo@py2neo-3.1.2#egg=py2neo==3.1.2
pycontracts==1.7.1
pycountry==1.20
pycparser==2.18

diff --git a/./requirements/edx/development.txt b/./requirements/edx/development.txt
index 66adefa..37cb757 100644
--- a/./requirements/edx/development.txt
+++ b/./requirements/edx/development.txt
@@ -237,7 +237,8 @@ pip-tools==2.0.2
pluggy==0.6.0
polib==1.1.0
psutil==1.2.1
-py2neo==3.1.2
+# install py2neo==3.1.2 from github repository as 3.1.2 has been removed from pypi.org
+git+https://github.com/technige/py2neo@py2neo-3.1.2#egg=py2neo==3.1.2
py==1.5.4
pyasn1-modules==0.2.2
pyasn1==0.4.4

diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt
index 3b35060..b9ff4cf 100644
--- a/requirements/edx/testing.txt
+++ b/requirements/edx/testing.txt
@@ -226,7 +226,8 @@ pillow==5.2.0
pluggy==0.6.0 # via pytest, tox
polib==1.1.0
psutil==1.2.1
-py2neo==3.1.2
+# install py2neo==3.1.2 from github repository as 3.1.2 has been removed from pypi.org
+git+https://github.com/technige/py2neo@py2neo-3.1.2#egg=py2neo==3.1.2
py==1.5.4 # via pytest, tox
pyasn1-modules==0.2.2 # via service-identity
pyasn1==0.4.4 # via pyasn1-modules, service-identity

0 comments on commit 891cc03

Please sign in to comment.