Compare commits
4 commits
35b8a294a4
...
19b64da7f5
Author | SHA1 | Date | |
---|---|---|---|
19b64da7f5 | |||
bc502d8cb9 | |||
5ddc747d31 | |||
bfd6a92d6c |
|
@ -15,7 +15,9 @@ main() {
|
|||
./build__pilot-xo9b.sh
|
||||
./build__pilot-setem.sh
|
||||
./build__pilot-lafede.sh
|
||||
./build__pilot-test.sh
|
||||
|
||||
./build__instance-autotest.sh
|
||||
|
||||
# pangea pilot the last because is the heavier
|
||||
# TODO enable it, temp disabled to optimize server resources
|
||||
#./build__pilot-pangea.sh
|
||||
|
|
|
@ -6,7 +6,7 @@ set -u
|
|||
#set -x
|
||||
|
||||
common_start() {
|
||||
figlet "${pilot}"
|
||||
figlet -w 100 "${target}"
|
||||
|
||||
deployment="${1:-${deployment:-}}"
|
||||
action="${action:-deploy}"
|
||||
|
@ -16,32 +16,28 @@ common_start() {
|
|||
detach='-d'
|
||||
fi
|
||||
|
||||
# ensure uses pilot-pangea branch and it is up to date
|
||||
# ensure uses main branch branch and that it is up to date
|
||||
(
|
||||
cd ./IdHub
|
||||
if [ -d .git ]; then
|
||||
#git checkout ${pilot}
|
||||
git checkout main
|
||||
git pull
|
||||
fi
|
||||
)
|
||||
|
||||
# some pilots might use idhub1 and/or idhub2
|
||||
idhub1="${idhub1:-idhub1__${pilot}}"
|
||||
idhub2="${idhub2:-idhub2__${pilot}}"
|
||||
|
||||
# force recreate
|
||||
rm -rf "./${idhub1}" "./${idhub2}"
|
||||
# some targets might use idhub1 and/or idhub2
|
||||
idhub1="${idhub1:-idhub1__${target}}"
|
||||
idhub2="${idhub2:-idhub2__${target}}"
|
||||
}
|
||||
|
||||
common_end() {
|
||||
|
||||
dc_file="docker-compose__${pilot}.yml"
|
||||
docker compose -p ${pilot} -f ${dc_file} down -v || true
|
||||
dc_file="docker-compose__${target}.yml"
|
||||
docker compose -p ${target} -f ${dc_file} down -v || true
|
||||
make idhub_build
|
||||
|
||||
if [ "${action:-}" = "deploy" ]; then
|
||||
docker compose -p ${pilot} -f ${dc_file} up ${detach:-}
|
||||
docker compose -p ${target} -f ${dc_file} up ${detach:-}
|
||||
wait_seconds="${wait_seconds:-20}"
|
||||
echo "Give ${wait_seconds} seconds to this new deployment to be setted up"
|
||||
sleep "${wait_seconds}"
|
||||
|
|
|
@ -13,11 +13,15 @@ main() {
|
|||
# common_end
|
||||
. ./build__common.sh
|
||||
|
||||
pilot='pilot-test'
|
||||
target='instance-autotest'
|
||||
|
||||
idhub1="idhub__${target}"
|
||||
|
||||
idhub1="idhub__${pilot}"
|
||||
common_start
|
||||
|
||||
# no data persistence: cleanup previous possible data
|
||||
rm -rf "./${idhub1}" "./${idhub2}"
|
||||
|
||||
# detect if is new
|
||||
if [ ! -f "./${idhub1}" ]; then
|
||||
echo 'Detected new deployment, recreating idhub git repo'
|
|
@ -13,7 +13,7 @@ main() {
|
|||
# common_end
|
||||
. ./build__common.sh
|
||||
|
||||
pilot='pilot-lafede'
|
||||
target='pilot-lafede'
|
||||
|
||||
common_start
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ main() {
|
|||
# common_end
|
||||
. ./build__common.sh
|
||||
|
||||
pilot='pilot-pangea'
|
||||
target='pilot-pangea'
|
||||
|
||||
common_start
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ main() {
|
|||
# common_end
|
||||
. ./build__common.sh
|
||||
|
||||
pilot='pilot-setem'
|
||||
target='pilot-setem'
|
||||
|
||||
common_start
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ main() {
|
|||
# common_end
|
||||
. ./build__common.sh
|
||||
|
||||
pilot='pilot-xo9b'
|
||||
target='pilot-xo9b'
|
||||
|
||||
common_start
|
||||
|
||||
|
|
|
@ -5,7 +5,9 @@ services:
|
|||
init: true
|
||||
image: dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral/idhub:latest
|
||||
environment:
|
||||
- DEPLOYMENT=${IDHUB_PILOT_TEST__IDHUB_DEPLOYMENT}
|
||||
#- DEPLOYMENT=${IDHUB_PILOT_TEST__IDHUB_DEPLOYMENT}
|
||||
# temp disable 2fa login
|
||||
- DEPLOYMENT=DEVELOPMENT
|
||||
- ADMIN_EMAIL=${IDHUB_PILOT_TEST__ADMIN_EMAIL}
|
||||
- SECRET_KEY=${IDHUB_SECRET_KEY:-publicsecretisnotsecureVtmKBfxpVV47PpBCF2Nzz2H6qnbd}
|
||||
- ALLOWED_HOSTS=${IDHUB_ALLOWED_HOSTS:-*}
|
Reference in a new issue