add instance autotest-pair

This commit is contained in:
pedro 2024-02-29 18:18:40 +01:00
parent d6fb59701a
commit f9171b65c5
4 changed files with 111 additions and 1 deletions

View File

@ -49,6 +49,11 @@
- **autotest**: - **autotest**:
- Instance: https://idhub-autotest.demo.pangea.org - Instance: https://idhub-autotest.demo.pangea.org
- Motivation: regenerated on each commit in main, intended for automated and fast testing - Motivation: regenerated on each commit in main, intended for automated and fast testing
- **autotest-pair**:
- Instances:
- https://idhub1-autotest.demo.pangea.org
- https://idhub2-autotest.demo.pangea.org
- Motivation: regenerated on each commit in main, intended for automated and fast testing. For testing that requires two instances
- **nightly**: - **nightly**:
- Instance: https://idhub-nightly.demo.pangea.org - Instance: https://idhub-nightly.demo.pangea.org
- Motivation: regenerated on each day at 4:00 AM - Motivation: regenerated on each day at 4:00 AM

View File

@ -6,7 +6,7 @@ set -u
#set -x #set -x
common_start() { common_start() {
figlet -w 100 "${target}" figlet -w 120 "${target}"
deployment="${1:-${deployment:-}}" deployment="${1:-${deployment:-}}"
action="${action:-deploy}" action="${action:-deploy}"

View File

@ -0,0 +1,27 @@
#!/bin/sh
set -e
set -u
# DEBUG
set -x
main() {
cd "$(dirname "${0}")"
# includes functions:
# common_start
# common_end
. ./build__common.sh
# vars used in common_start and end
target='instance-autotest-pair'
persistence='n'
idhubs='idhub1 idhub2'
idhub_branch='release'
common_start
common_end
}
main "${@}"

View File

@ -0,0 +1,78 @@
version: "3.9"
services:
idhub1:
init: true
image: dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral/idhub:latest
environment:
- DEBUG=true
- ADMIN_EMAIL=${IDHUB_PILOT_TEST__ADMIN_EMAIL}
- CREATE_TEST_USERS=true
- ENABLE_EMAIL=false
- ENABLE_2FACTOR_AUTH=false
- 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://idhub1-autotest.demo.pangea.org
- CSRF_TRUSTED_ORIGINS=https://idhub1-autotest.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}
- RESPONSE_URI=https://idhub1-autotest.demo.pangea.org/oidc4vp/
- ALLOW_CODE_URI=https://idhub1-autotest.demo.pangea.org/oidc4vp/allow_code
- SUPPORTED_CREDENTIALS=['CourseCredential', 'EOperatorClaim', 'FederationMembership', 'FinancialVulnerabilityCredential', 'MembershipCard']
- SYNC_ORG_DEV=${IDHUB_SYNC_ORG_DEV}
- ORG_FILE=examples/organizations__instance_autotest-pair.csv
ports:
- 9071:9001
volumes:
- ./idhub1__instance-autotest-pair:/opt/idhub
- sharedsecret:/sharedsecret:rw
idhub2:
init: true
image: dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral/idhub:latest
environment:
- DEBUG=true
- ADMIN_EMAIL=${IDHUB_PILOT_TEST__ADMIN_EMAIL}
- CREATE_TEST_USERS=true
- ENABLE_EMAIL=false
- ENABLE_2FACTOR_AUTH=false
- 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://idhub2-autotest.demo.pangea.org
- CSRF_TRUSTED_ORIGINS=https://idhub2-autotest.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}
- RESPONSE_URI=https://idhub2-autotest.demo.pangea.org/oidc4vp/
- ALLOW_CODE_URI=https://idhub2-autotest.demo.pangea.org/oidc4vp/allow_code
- SUPPORTED_CREDENTIALS=['CourseCredential', 'EOperatorClaim', 'FederationMembership', 'FinancialVulnerabilityCredential', 'MembershipCard']
- SYNC_ORG_DEV=${IDHUB_SYNC_ORG_DEV}
- ORG_FILE=examples/organizations__instance_autotest-pair.csv
ports:
- 9072:9001
volumes:
- ./idhub2__instance-autotest-pair:/opt/idhub
- sharedsecret:/sharedsecret:rw
volumes:
sharedsecret: