Skip to content

Commit

Permalink
Updated the patch of the assemble script based on newer base images (#…
Browse files Browse the repository at this point in the history
…223)

Signed-off-by: Harshad Reddy Nalla <[email protected]>
  • Loading branch information
harshad16 authored Dec 7, 2021
1 parent ed7b83a commit 60a0ea5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 65 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.lock
a/*
b/*
25 changes: 4 additions & 21 deletions ubi8-py36/s2i_assemble.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- a/assemble 2020-10-31 11:55:38.000000000 +0100
+++ b/assemble 2020-11-25 22:32:16.739312082 +0100
--- a/assemble 2021-12-07 00:04:23.680648366 -0500
+++ b/assemble 2021-12-07 00:04:15.508632870 -0500
@@ -18,38 +18,8 @@
fi
}
Expand Down Expand Up @@ -39,24 +39,7 @@
shopt -s dotglob
echo "---> Installing application source ..."
mv /tmp/src/* "$HOME"
@@ -57,16 +27,6 @@
# set permissions for any installed artifacts
fix-permissions /opt/app-root -P

-# We have to first upgrade pip to at least 19.3 because:
-# * pip < 9 does not support different packages' versions for Python 2/3
-# * pip < 19.3 does not support manylinux2014 wheels. Only manylinux2014 wheels
-# support platforms like ppc64le, aarch64 or armv7
-echo "---> Upgrading pip to version 19.3.1 ..."
-if ! pip install -U "pip==19.3.1"; then
- echo "WARNING: Installation of 'pip==19.3.1' failed, trying again from official PyPI with pip --isolated install"
- pip install --isolated -U "pip==19.3.1"
-fi
-
if [[ ! -z "$UPGRADE_PIP_TO_LATEST" ]]; then
echo "---> Upgrading pip to latest version ..."
if ! pip install -U pip setuptools wheel; then
@@ -75,28 +35,7 @@
@@ -66,28 +36,7 @@
fi
fi

Expand Down Expand Up @@ -84,5 +67,5 @@
-fi
+thamos install

if [[ -f setup.py && -z "$DISABLE_SETUP_PY_PROCESSING" ]]; then
if [[ ( -f setup.py || -f setup.cfg ) && -z "$DISABLE_SETUP_PY_PROCESSING" ]]; then
echo "---> Installing application ..."
27 changes: 5 additions & 22 deletions ubi8-py38/s2i_assemble.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--- a/assemble 2020-10-31 11:55:38.000000000 +0100
+++ b/assemble 2020-11-25 22:32:16.739312082 +0100
@@ -18,38 +18,8 @@
fi
--- a/assemble 2021-12-07 00:00:27.196199956 -0500
+++ b/assemble 2021-12-07 00:00:32.284209605 -0500
@@ -14,38 +14,8 @@
python3.8 -m venv $1
}

-# Install pipenv or micropipenv to the separate virtualenv to isolate it
Expand Down Expand Up @@ -39,24 +39,7 @@
shopt -s dotglob
echo "---> Installing application source ..."
mv /tmp/src/* "$HOME"
@@ -57,16 +27,6 @@
# set permissions for any installed artifacts
fix-permissions /opt/app-root -P

-# We have to first upgrade pip to at least 19.3 because:
-# * pip < 9 does not support different packages' versions for Python 2/3
-# * pip < 19.3 does not support manylinux2014 wheels. Only manylinux2014 wheels
-# support platforms like ppc64le, aarch64 or armv7
-echo "---> Upgrading pip to version 19.3.1 ..."
-if ! pip install -U "pip==19.3.1"; then
- echo "WARNING: Installation of 'pip==19.3.1' failed, trying again from official PyPI with pip --isolated install"
- pip install --isolated -U "pip==19.3.1"
-fi
-
if [[ ! -z "$UPGRADE_PIP_TO_LATEST" ]]; then
echo "---> Upgrading pip to latest version ..."
if ! pip install -U pip setuptools wheel; then
@@ -75,28 +35,7 @@
@@ -62,28 +32,7 @@
fi
fi

Expand Down
27 changes: 5 additions & 22 deletions ubi8-py39/s2i_assemble.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--- a/assemble 2020-10-31 11:55:38.000000000 +0100
+++ b/assemble 2020-11-25 22:32:16.739312082 +0100
@@ -18,38 +18,8 @@
fi
--- a/assemble 2021-12-07 00:00:27.196199956 -0500
+++ b/assemble 2021-12-07 00:00:32.284209605 -0500
@@ -14,38 +14,8 @@
python3.9 -m venv $1
}

-# Install pipenv or micropipenv to the separate virtualenv to isolate it
Expand Down Expand Up @@ -39,24 +39,7 @@
shopt -s dotglob
echo "---> Installing application source ..."
mv /tmp/src/* "$HOME"
@@ -57,16 +27,6 @@
# set permissions for any installed artifacts
fix-permissions /opt/app-root -P

-# We have to first upgrade pip to at least 19.3 because:
-# * pip < 9 does not support different packages' versions for Python 2/3
-# * pip < 19.3 does not support manylinux2014 wheels. Only manylinux2014 wheels
-# support platforms like ppc64le, aarch64 or armv7
-echo "---> Upgrading pip to version 19.3.1 ..."
-if ! pip install -U "pip==19.3.1"; then
- echo "WARNING: Installation of 'pip==19.3.1' failed, trying again from official PyPI with pip --isolated install"
- pip install --isolated -U "pip==19.3.1"
-fi
-
if [[ ! -z "$UPGRADE_PIP_TO_LATEST" ]]; then
echo "---> Upgrading pip to latest version ..."
if ! pip install -U pip setuptools wheel; then
@@ -75,28 +35,7 @@
@@ -62,28 +32,7 @@
fi
fi

Expand Down

0 comments on commit 60a0ea5

Please sign in to comment.