|
@ -111,15 +111,20 @@ EOF |
|
|
## |
|
|
## |
|
|
## We could need some docker-compose for some quick hacks |
|
|
## We could need some docker-compose for some quick hacks |
|
|
## |
|
|
## |
|
|
if ! type -p docker-compose >/dev/null; then |
|
|
|
|
|
# seems to require a C compiler |
|
|
|
|
|
apt-get install -y build-essential </dev/null && |
|
|
|
|
|
pip install wheel==0.33.6 && |
|
|
|
|
|
pip install pip==19.3.1 cffi==1.12.3 subprocess32==3.5.4 texttable==1.6.2 \ |
|
|
|
|
|
pyrsistent==0.15.7 \ |
|
|
|
|
|
git+https://github.com/0k/compose@run_ignore_orphans || exit 1 |
|
|
|
|
|
## Bug after updating pip |
|
|
|
|
|
hash -d pip || exit 1 |
|
|
|
|
|
|
|
|
version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; } |
|
|
|
|
|
|
|
|
|
|
|
if type -p python3 >/dev/null 2>&1 && |
|
|
|
|
|
! version_gt $(python3 --version | cut -f 2 -d " ") 3.9 ; then |
|
|
|
|
|
if ! type -p docker-compose >/dev/null; then |
|
|
|
|
|
# seems to require a C compiler |
|
|
|
|
|
apt-get install -y build-essential libffi-dev </dev/null && |
|
|
|
|
|
pip install wheel==0.33.6 && |
|
|
|
|
|
pip install pip==19.3.1 cffi==1.12.3 subprocess32==3.5.4 texttable==1.6.2 \ |
|
|
|
|
|
pyrsistent==0.15.7 \ |
|
|
|
|
|
git+https://github.com/0k/compose@run_ignore_orphans || exit 1 |
|
|
|
|
|
## Bug after updating pip |
|
|
|
|
|
hash -d pip || exit 1 |
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ "$DOMAIN" ]; then |
|
|
if [ "$DOMAIN" ]; then |
|
|