add new pilot test
This commit is contained in:
parent
07376ba0b1
commit
2cd782368d
|
@ -11,3 +11,4 @@ ssikit_trustchain
|
|||
|
||||
idhub1__*
|
||||
idhub2__*
|
||||
idhub1__*
|
||||
|
|
|
@ -14,6 +14,7 @@ main() {
|
|||
./build__pilot-setem.sh
|
||||
./build__pilot-lafede.sh
|
||||
./build__pilot-pangea.sh
|
||||
./build__pilot-test.sh
|
||||
}
|
||||
|
||||
main "${@}"
|
||||
|
|
|
@ -27,8 +27,8 @@ common_start() {
|
|||
)
|
||||
|
||||
# some pilots might use idhub1 and/or idhub2
|
||||
idhub1="idhub1__${pilot}"
|
||||
idhub2="idhub2__${pilot}"
|
||||
idhub1="${idhub1:-idhub1__${pilot}}"
|
||||
idhub2="${idhub2:-idhub2__${pilot}}"
|
||||
|
||||
# force recreate
|
||||
rm -rf "./${idhub1}" "./${idhub2}"
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
# DEBUG
|
||||
set -x
|
||||
|
||||
main() {
|
||||
# includes functions:
|
||||
# common_start
|
||||
# common_end
|
||||
. ./build__common.sh
|
||||
|
||||
pilot='pilot-test'
|
||||
|
||||
idhub1="idhub__${pilot}"
|
||||
common_start
|
||||
|
||||
# detect if is new
|
||||
if [ ! -f "./${idhub1}" ]; then
|
||||
echo 'Detected new deployment, recreating idhub git repo'
|
||||
cp -rp IdHub "${idhub1}"
|
||||
rm -f "${idhub1}/db.sqlite3"
|
||||
fi
|
||||
|
||||
common_end
|
||||
}
|
||||
|
||||
main "${@}"
|
|
@ -0,0 +1,30 @@
|
|||
version: "3.9"
|
||||
services:
|
||||
|
||||
idhub:
|
||||
init: true
|
||||
image: dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral/idhub:latest
|
||||
environment:
|
||||
- DEPLOYMENT=${IDHUB_DEPLOYMENT}
|
||||
- SECRET_KEY=${IDHUB_SECRET_KEY:-publicsecretisnotsecureVtmKBfxpVV47PpBCF2Nzz2H6qnbd}
|
||||
- ALLOWED_HOSTS=${IDHUB_ALLOWED_HOSTS:-*}
|
||||
- STATIC_ROOT=${IDHUB_STATIC_ROOT:-/static/}
|
||||
- MEDIA_ROOT=${IDHUB_MEDIA_ROOT:-/media/}
|
||||
- PORT=${IDHUB_PORT:-9001}
|
||||
- DJANGO_SUPERUSER_USERNAME=${IDHUB_USER}
|
||||
- DJANGO_SUPERUSER_PASSWORD=${IDHUB_PASSWD}
|
||||
- DJANGO_SUPERUSER_EMAIL=${IDHUB_EMAIL}
|
||||
- DOMAIN=https://idhub.demo.pangea.org
|
||||
- CSRF_TRUSTED_ORIGINS=https://idhub.demo.pangea.org
|
||||
- DEFAULT_FROM_EMAIL=${IDHUB_DEFAULT_FROM_EMAIL}
|
||||
- EMAIL_HOST=${IDHUB_EMAIL_HOST}
|
||||
- EMAIL_HOST_USER=${IDHUB_EMAIL_HOST_USER}
|
||||
- EMAIL_HOST_PASSWORD=${IDHUB_EMAIL_HOST_PASSWORD}
|
||||
- EMAIL_PORT=${IDHUB_EMAIL_PORT}
|
||||
- EMAIL_USE_TLS=${IDHUB_EMAIL_USE_TLS}
|
||||
- EMAIL_BACKEND=${IDHUB_EMAIL_BACKEND}
|
||||
- SUPPORTED_CREDENTIALS=['FederationMembership', 'CourseCredential']
|
||||
ports:
|
||||
- 9021:9001
|
||||
volumes:
|
||||
- ./idhub__pilot-test:/opt/idhub
|
Reference in New Issue