fix docker project namespaces

This commit is contained in:
pedro 2024-01-16 11:19:55 +01:00
parent 1cc0cdc4d9
commit 00360491ec
3 changed files with 18 additions and 18 deletions

View File

@ -20,23 +20,23 @@ main() {
git checkout pilot-lafede
)
postfix='pilot-lafede'
local idhub1="idhub1__${postfix}"
pilot='pilot-lafede'
local idhub1="idhub1__${pilot}"
# force recreate
rm -rf "./${idhub1}"
# detect if is new
if [ ! -f "./${idhub1}" ]; then
echo 'Detected new deployment, recreating git repos idhub1 and idhub2'
echo 'Detected new deployment, recreating idhub git repo'
cp -rp IdHub "${idhub1}"
rm -f "${idhub1}/db.sqlite3"
fi
idhub_dc_f="docker-compose__${postfix}.yml"
docker compose -f ${idhub_dc_f} down -v || true
idhub_dc_f="docker-compose__${pilot}.yml"
docker compose -p ${pilot} -f ${idhub_dc_f} down -v || true
make idhub_build \
&& docker compose -f ${idhub_dc_f} up ${detach:-}
&& docker compose -p ${pilot} -f ${idhub_dc_f} up ${detach:-}
}
main "${@}"

View File

@ -20,9 +20,9 @@ main() {
git checkout pilot-setem
)
postfix='pilot-setem'
local idhub1="idhub1__${postfix}"
local idhub2="idhub2__${postfix}"
pilot='pilot-setem'
local idhub1="idhub1__${pilot}"
local idhub2="idhub2__${pilot}"
# force recreate
rm -rf "./${idhub1}" "./${idhub2}"
@ -36,10 +36,10 @@ main() {
rm -f "${idhub2}/db.sqlite3"
fi
idhub_dc_f="docker-compose__${postfix}.yml"
docker compose -f ${idhub_dc_f} down -v || true
idhub_dc_f="docker-compose__${pilot}.yml"
docker compose -p ${pilot} -f ${idhub_dc_f} down -v || true
make idhub_build \
&& docker compose -f ${idhub_dc_f} up ${detach:-}
&& docker compose -p ${pilot} -f ${idhub_dc_f} up ${detach:-}
}
main "${@}"

View File

@ -20,9 +20,9 @@ main() {
git checkout pilot-xo9b
)
postfix='pilot-xo9b'
local idhub1="idhub1__${postfix}"
local idhub2="idhub2__${postfix}"
pilot='pilot-xo9b'
local idhub1="idhub1__${pilot}"
local idhub2="idhub2__${pilot}"
# force recreate
rm -rf "./${idhub1}" "./${idhub2}"
@ -36,10 +36,10 @@ main() {
rm -f "${idhub2}/db.sqlite3"
fi
idhub_dc_f="docker-compose__${postfix}.yml"
docker compose -f ${idhub_dc_f} down -v || true
idhub_dc_f="docker-compose__${pilot}.yml"
docker compose -p ${pilot} -f ${idhub_dc_f} down -v || true
make idhub_build \
&& docker compose -f ${idhub_dc_f} up ${detach:-}
&& docker compose -p ${pilot} -f ${idhub_dc_f} up ${detach:-}
}
main "${@}"