Skip to content

Commit

Permalink
Add the S2I files
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jan 17, 2024
1 parent dfc8c86 commit 6f16000
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .s2i/bin/assemble
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash -e

# The assemble script builds the application artifacts from a source and
# places them into appropriate directories inside the image.

# Execute the default S2I script
. /usr/libexec/s2i/assemble

set -e
set -x

install_tool "micropipenv" "[toml]"

micropipenv install --deploy

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

# set permissions for any installed artifacts
fix-permissions /opt/app-root -P
2 changes: 2 additions & 0 deletions .s2i/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
UPGRADE_PIP_TO_LATEST=true
APP_MODULE=mirrormanager2.app:create_app()

0 comments on commit 6f16000

Please sign in to comment.