Skip to content

Commit

Permalink
FIX backend gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-barrionuevo committed Sep 27, 2024
1 parent 87c8d0a commit f3f1253
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ var/
# """
##

!.s2i/.bin/
!.s2i/bin/
34 changes: 34 additions & 0 deletions backend/.s2i/bin/assemble
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

echo "Creating python venv envrionment"
python3.9 -m venv . || virtualenv --python=python3.9 .
echo "Python venv executed and bin folder created"


echo "Default S2I assemble script will begin"

/usr/libexec/s2i/assemble
rc=$?

if [ $rc -eq 0 ]; then
echo "After successful default S2I assembling"
echo "Starting custom S2I assembling"

# Custom S2I assemble for plone.restapi
make build-plone-6.0
# TODO: Fix default S2I pip install. S2I already runs the pip install but have been disabled with DISABLE_SETUP_PY_PROCESSING and DISABLE_PYPROJECT_TOML_PROCESSING.
# Pip install on requirements.txt made the buildout command available. This is the missing step from the make command
# buildout -c plone-6.0.x.cfg

# set permissions for any installed artifacts
fix-permissions /opt/app-root -P

# manually set permission to instance-wrapper
chmod +x ./instance-wrapper

echo "End of custom S2I assembling"
else
echo "After failed S2I assembling"
fi

exit $rc

0 comments on commit f3f1253

Please sign in to comment.