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()