From 5325b20e45e4df92f21ed83739a3c0f2eac0b5e8 Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 6 Mar 2024 19:07:30 +0100 Subject: [PATCH] add nightly-pair --- build__instance-nightly-pair.sh | 27 +++++++++ docker-compose__instance-nightly-pair.yml | 68 +++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100755 build__instance-nightly-pair.sh create mode 100644 docker-compose__instance-nightly-pair.yml diff --git a/build__instance-nightly-pair.sh b/build__instance-nightly-pair.sh new file mode 100755 index 0000000..4ba4537 --- /dev/null +++ b/build__instance-nightly-pair.sh @@ -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-nightly-pair' + persistence='n' + idhubs='idhub1 idhub2' + idhub_branch='release' + + common_start + + common_end +} + +main "${@}" diff --git a/docker-compose__instance-nightly-pair.yml b/docker-compose__instance-nightly-pair.yml new file mode 100644 index 0000000..df31334 --- /dev/null +++ b/docker-compose__instance-nightly-pair.yml @@ -0,0 +1,68 @@ +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} + - STATIC_ROOT=${IDHUB_STATIC_ROOT:-/static/} + - MEDIA_ROOT=${IDHUB_MEDIA_ROOT:-/media/} + - PORT=${IDHUB_PORT:-9001} + - DOMAIN=idhub1-nightly.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-nightly.demo.pangea.org/oidc4vp/ + - SUPPORTED_CREDENTIALS=['CourseCredential', 'EOperatorClaim', 'FederationMembership', 'FinancialVulnerabilityCredential', 'MembershipCard'] + - SYNC_ORG_DEV=${IDHUB_SYNC_ORG_DEV} + - OIDC_ORGS=examples/organizations__instance_nightly-pair.csv + - OIDC_REDIRECT=true + ports: + - 9081:9001 + volumes: + - ./idhub1__instance-nightly-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} + - STATIC_ROOT=${IDHUB_STATIC_ROOT:-/static/} + - MEDIA_ROOT=${IDHUB_MEDIA_ROOT:-/media/} + - PORT=${IDHUB_PORT:-9001} + - DOMAIN=idhub2-nightly.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-nightly.demo.pangea.org/oidc4vp/ + - SUPPORTED_CREDENTIALS=['CourseCredential', 'EOperatorClaim', 'FederationMembership', 'FinancialVulnerabilityCredential', 'MembershipCard'] + - SYNC_ORG_DEV=${IDHUB_SYNC_ORG_DEV} + - OIDC_ORGS=examples/organizations__instance_nightly-pair.csv + - OIDC_REDIRECT=true + ports: + - 9082:9001 + volumes: + - ./idhub2__instance-nightly-pair:/opt/idhub + - sharedsecret:/sharedsecret:rw + +volumes: + sharedsecret: