Skip to content

Commit

Permalink
Fix build in Openshift
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jun 26, 2024
1 parent e6eed77 commit 3d58828
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .s2i/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,12 @@
set -e
set -x

install_tool "micropipenv" "[toml]"
# install_tool "micropipenv" "[toml]"

# Poetry 1.5.0 breaks micropipenv, regenetate the log file
# https://github.com/thoth-station/micropipenv/issues/280
pip install "poetry<1.5.0"
poetry lock --no-update -n
#

# Fix a couple issues with git sources in micropipenv
pip install unidiff
curl -O https://patch-diff.githubusercontent.com/raw/thoth-station/micropipenv/pull/296.patch
python devel/filterdiff.py -i "*/micropipenv.py" 296.patch \
| patch -p1 /opt/app-root/src/.local/venvs/micropipenv/lib/python3.*/site-packages/micropipenv.py

micropipenv install --deploy
# micropipenv install --deploy

# Now install the root project too, micropipenv does not do that
pip install . --no-deps
# pip install . --no-deps

# set permissions for any installed artifacts
fix-permissions /opt/app-root -P
# fix-permissions /opt/app-root -P
1 change: 1 addition & 0 deletions .s2i/environment
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
# SPDX-License-Identifier: MIT

UPGRADE_PIP_TO_LATEST=true
ENABLE_MICROPIPENV=true
APP_SCRIPT=.s2i/run.sh

0 comments on commit 3d58828

Please sign in to comment.