From 294f7d9597bff07dab2f2240cbc8917bd819d7b5 Mon Sep 17 00:00:00 2001 From: Alessio Murru Date: Wed, 26 Jul 2023 09:50:09 +0200 Subject: [PATCH 1/2] python version selected dinamically for docker version --- example/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/run.sh b/example/run.sh index da8fae0e..11bd0014 100644 --- a/example/run.sh +++ b/example/run.sh @@ -175,7 +175,7 @@ fi wget https://mdx.idem.garr.it/idem-mdx-service-crt.pem -O pki/idem-mdx-service-crt.pem if [[ -v SATOSA_BY_DOCKER ]]; then - SATOSA_APP=/usr/lib/python3.8/site-packages/satosa + SATOSA_APP=/usr/lib/$(python -c 'import sys; print(f"python{sys.version_info.major}.{sys.version_info.minor}")')/site-packages/satosa # in questo modo parla uwsgi, dal browser sulla porta 10000 si ha un errore e in nginx va utilizzato uwsgi_pass uwsgi --wsgi-file $SATOSA_APP/wsgi.py --socket 0.0.0.0:10000 --callable app -b 32768 --processes 4 --threads 2 From d9a9d94a0d7bf2e3e25b7dc9b1cb0f5da7eef5ee Mon Sep 17 00:00:00 2001 From: Alessio Murru Date: Wed, 26 Jul 2023 11:31:19 +0200 Subject: [PATCH 2/2] fixed python version --- example/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/run.sh b/example/run.sh index 11bd0014..066027cb 100644 --- a/example/run.sh +++ b/example/run.sh @@ -175,7 +175,7 @@ fi wget https://mdx.idem.garr.it/idem-mdx-service-crt.pem -O pki/idem-mdx-service-crt.pem if [[ -v SATOSA_BY_DOCKER ]]; then - SATOSA_APP=/usr/lib/$(python -c 'import sys; print(f"python{sys.version_info.major}.{sys.version_info.minor}")')/site-packages/satosa + SATOSA_APP=/usr/lib/$(python3 -c 'import sys; print(f"python{sys.version_info.major}.{sys.version_info.minor}")')/site-packages/satosa # in questo modo parla uwsgi, dal browser sulla porta 10000 si ha un errore e in nginx va utilizzato uwsgi_pass uwsgi --wsgi-file $SATOSA_APP/wsgi.py --socket 0.0.0.0:10000 --callable app -b 32768 --processes 4 --threads 2