Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
hrnciar committed Jun 21, 2024
1 parent 1c03553 commit 6f79ce0
Show file tree
Hide file tree
Showing 9 changed files with 135 additions and 135 deletions.
30 changes: 15 additions & 15 deletions 2.7/s2i/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ function maybe_run_in_init_wrapper() {
fi
}

# Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
python -c 'import gunicorn
ver = gunicorn.version_info
if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
exit(0)'
ret=$?
grep -q "wsgi_app" gunicorn.conf.py
grep_result=$?
if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
echo "--> Using gunicorn.conf.py"
echo "---> Serving application with gunicorn ..."
exec gunicorn
fi
fi
## Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
#if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
# python -c 'import gunicorn
#ver = gunicorn.version_info
#if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
# exit(0)'
# ret=$?
# grep -q "wsgi_app" gunicorn.conf.py
# grep_result=$?
# if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
# echo "--> Using gunicorn.conf.py"
# echo "---> Serving application with gunicorn ..."
# exec gunicorn
# fi
#fi

APP_HOME=$(readlink -f "${APP_HOME:-.}")
# Change the working directory to APP_HOME
Expand Down
30 changes: 15 additions & 15 deletions 3.11-minimal/s2i/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ function maybe_run_in_init_wrapper() {
fi
}

# Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
python -c 'import gunicorn
ver = gunicorn.version_info
if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
exit(0)'
ret=$?
grep -q "wsgi_app" gunicorn.conf.py
grep_result=$?
if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
echo "--> Using gunicorn.conf.py"
echo "---> Serving application with gunicorn ..."
exec gunicorn
fi
fi
## Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
#if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
# python -c 'import gunicorn
#ver = gunicorn.version_info
#if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
# exit(0)'
# ret=$?
# grep -q "wsgi_app" gunicorn.conf.py
# grep_result=$?
# if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
# echo "--> Using gunicorn.conf.py"
# echo "---> Serving application with gunicorn ..."
# exec gunicorn
# fi
#fi

APP_HOME=$(readlink -f "${APP_HOME:-.}")
# Change the working directory to APP_HOME
Expand Down
30 changes: 15 additions & 15 deletions 3.11/s2i/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ function maybe_run_in_init_wrapper() {
fi
}

# Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
python -c 'import gunicorn
ver = gunicorn.version_info
if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
exit(0)'
ret=$?
grep -q "wsgi_app" gunicorn.conf.py
grep_result=$?
if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
echo "--> Using gunicorn.conf.py"
echo "---> Serving application with gunicorn ..."
exec gunicorn
fi
fi
## Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
#if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
# python -c 'import gunicorn
#ver = gunicorn.version_info
#if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
# exit(0)'
# ret=$?
# grep -q "wsgi_app" gunicorn.conf.py
# grep_result=$?
# if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
# echo "--> Using gunicorn.conf.py"
# echo "---> Serving application with gunicorn ..."
# exec gunicorn
# fi
#fi

APP_HOME=$(readlink -f "${APP_HOME:-.}")
# Change the working directory to APP_HOME
Expand Down
30 changes: 15 additions & 15 deletions 3.12/s2i/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ function maybe_run_in_init_wrapper() {
fi
}

# Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
python -c 'import gunicorn
ver = gunicorn.version_info
if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
exit(0)'
ret=$?
grep -q "wsgi_app" gunicorn.conf.py
grep_result=$?
if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
echo "--> Using gunicorn.conf.py"
echo "---> Serving application with gunicorn ..."
exec gunicorn
fi
fi
## Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
#if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
# python -c 'import gunicorn
#ver = gunicorn.version_info
#if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
# exit(0)'
# ret=$?
# grep -q "wsgi_app" gunicorn.conf.py
# grep_result=$?
# if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
# echo "--> Using gunicorn.conf.py"
# echo "---> Serving application with gunicorn ..."
# exec gunicorn
# fi
#fi

APP_HOME=$(readlink -f "${APP_HOME:-.}")
# Change the working directory to APP_HOME
Expand Down
30 changes: 15 additions & 15 deletions 3.6/s2i/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ function maybe_run_in_init_wrapper() {
fi
}

# Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
python -c 'import gunicorn
ver = gunicorn.version_info
if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
exit(0)'
ret=$?
grep -q "wsgi_app" gunicorn.conf.py
grep_result=$?
if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
echo "--> Using gunicorn.conf.py"
echo "---> Serving application with gunicorn ..."
exec gunicorn
fi
fi
## Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
#if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
# python -c 'import gunicorn
#ver = gunicorn.version_info
#if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
# exit(0)'
# ret=$?
# grep -q "wsgi_app" gunicorn.conf.py
# grep_result=$?
# if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
# echo "--> Using gunicorn.conf.py"
# echo "---> Serving application with gunicorn ..."
# exec gunicorn
# fi
#fi

APP_HOME=$(readlink -f "${APP_HOME:-.}")
# Change the working directory to APP_HOME
Expand Down
30 changes: 15 additions & 15 deletions 3.8/s2i/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ function maybe_run_in_init_wrapper() {
fi
}

# Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
python -c 'import gunicorn
ver = gunicorn.version_info
if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
exit(0)'
ret=$?
grep -q "wsgi_app" gunicorn.conf.py
grep_result=$?
if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
echo "--> Using gunicorn.conf.py"
echo "---> Serving application with gunicorn ..."
exec gunicorn
fi
fi
## Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
#if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
# python -c 'import gunicorn
#ver = gunicorn.version_info
#if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
# exit(0)'
# ret=$?
# grep -q "wsgi_app" gunicorn.conf.py
# grep_result=$?
# if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
# echo "--> Using gunicorn.conf.py"
# echo "---> Serving application with gunicorn ..."
# exec gunicorn
# fi
#fi

APP_HOME=$(readlink -f "${APP_HOME:-.}")
# Change the working directory to APP_HOME
Expand Down
30 changes: 15 additions & 15 deletions 3.9-minimal/s2i/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ function maybe_run_in_init_wrapper() {
fi
}

# Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
python -c 'import gunicorn
ver = gunicorn.version_info
if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
exit(0)'
ret=$?
grep -q "wsgi_app" gunicorn.conf.py
grep_result=$?
if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
echo "--> Using gunicorn.conf.py"
echo "---> Serving application with gunicorn ..."
exec gunicorn
fi
fi
## Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
#if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
# python -c 'import gunicorn
#ver = gunicorn.version_info
#if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
# exit(0)'
# ret=$?
# grep -q "wsgi_app" gunicorn.conf.py
# grep_result=$?
# if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
# echo "--> Using gunicorn.conf.py"
# echo "---> Serving application with gunicorn ..."
# exec gunicorn
# fi
#fi

APP_HOME=$(readlink -f "${APP_HOME:-.}")
# Change the working directory to APP_HOME
Expand Down
30 changes: 15 additions & 15 deletions 3.9/s2i/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ function maybe_run_in_init_wrapper() {
fi
}

# Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
python -c 'import gunicorn
ver = gunicorn.version_info
if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
exit(0)'
ret=$?
grep -q "wsgi_app" gunicorn.conf.py
grep_result=$?
if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
echo "--> Using gunicorn.conf.py"
echo "---> Serving application with gunicorn ..."
exec gunicorn
fi
fi
## Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
#if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
# python -c 'import gunicorn
#ver = gunicorn.version_info
#if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
# exit(0)'
# ret=$?
# grep -q "wsgi_app" gunicorn.conf.py
# grep_result=$?
# if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
# echo "--> Using gunicorn.conf.py"
# echo "---> Serving application with gunicorn ..."
# exec gunicorn
# fi
#fi

APP_HOME=$(readlink -f "${APP_HOME:-.}")
# Change the working directory to APP_HOME
Expand Down
30 changes: 15 additions & 15 deletions src/s2i/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ function maybe_run_in_init_wrapper() {
fi
}

# Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
python -c 'import gunicorn
ver = gunicorn.version_info
if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
exit(0)'
ret=$?
grep -q "wsgi_app" gunicorn.conf.py
grep_result=$?
if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
echo "--> Using gunicorn.conf.py"
echo "---> Serving application with gunicorn ..."
exec gunicorn
fi
fi
## Look for gunicorn>=20.1.0 to utilize gunicorn.conf.py
#if is_gunicorn_installed && [[ -f "gunicorn.conf.py" ]]; then
# python -c 'import gunicorn
#ver = gunicorn.version_info
#if (ver[0] >= 20 and ver[1] >= 1) or ver[0] > 20:
# exit(0)'
# ret=$?
# grep -q "wsgi_app" gunicorn.conf.py
# grep_result=$?
# if [[ $ret -eq 0 ]] && [[ -f "gunicorn.conf.py" ]] && [[ $grep_result -eq 0 ]]; then
# echo "--> Using gunicorn.conf.py"
# echo "---> Serving application with gunicorn ..."
# exec gunicorn
# fi
#fi

APP_HOME=$(readlink -f "${APP_HOME:-.}")
# Change the working directory to APP_HOME
Expand Down

0 comments on commit 6f79ce0

Please sign in to comment.