Skip to content

Commit

Permalink
Fix build in Openshift again
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 13, 2024
1 parent 651416f commit 3e08198
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .s2i/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@
set -e
set -x

# Now install the root project too, micropipenv does not do that
pip install . --no-deps
echo "---> Installing poetry ..."
install_tool poetry

echo "---> Upgrade Poetry's pip to the latest version ..."
$VENV_DIR/bin/pip install --upgrade pip

echo "---> Installing application and dependencies ..."
poetry install --only main --all-extras

# Set the version in an environment variable for the frontend to pickup
VITE_VERSION=$(pip show fmn | grep ^Version: | cut -d' ' -f2)
VITE_VERSION=$(poetry version | cut -d' ' -f2)
if [ -n "${OPENSHIFT_BUILD_COMMIT}" -a -n "${OPENSHIFT_BUILD_REFERENCE}" ]; then
VITE_VERSION="${VITE_VERSION} (${OPENSHIFT_BUILD_REFERENCE}:${OPENSHIFT_BUILD_COMMIT:0:7})"
fi
Expand Down
1 change: 0 additions & 1 deletion .s2i/environment
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

UPGRADE_PIP_TO_LATEST=true
DISABLE_PYPROJECT_TOML_PROCESSING=true
ENABLE_MICROPIPENV=true
# APP_SCRIPT=.s2i/run-api.sh
# APP_SCRIPT=.s2i/run-consumer.sh
# APP_SCRIPT=.s2i/run-sender.sh

0 comments on commit 3e08198

Please sign in to comment.