From 6f16000a88910a871fa54f4f25dda09705b278d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Wed, 17 Jan 2024 08:53:07 +0100 Subject: [PATCH] Add the S2I files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- .s2i/bin/assemble | 20 ++++++++++++++++++++ .s2i/environment | 2 ++ 2 files changed, 22 insertions(+) create mode 100755 .s2i/bin/assemble create mode 100644 .s2i/environment diff --git a/.s2i/bin/assemble b/.s2i/bin/assemble new file mode 100755 index 000000000..c99755040 --- /dev/null +++ b/.s2i/bin/assemble @@ -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 diff --git a/.s2i/environment b/.s2i/environment new file mode 100644 index 000000000..a4ecf5ed5 --- /dev/null +++ b/.s2i/environment @@ -0,0 +1,2 @@ +UPGRADE_PIP_TO_LATEST=true +APP_MODULE=mirrormanager2.app:create_app()