This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2023-10-31 10:00:08 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
# DEBUG
|
|
|
|
set -x
|
|
|
|
|
|
|
|
main() {
|
2023-11-03 08:59:56 +00:00
|
|
|
deployment="${1:-}"
|
|
|
|
|
|
|
|
# detach on production deployment
|
|
|
|
if [ "${deployment}" = 'prod' ]; then
|
|
|
|
detach='-d'
|
|
|
|
fi
|
|
|
|
|
2023-10-31 10:00:08 +00:00
|
|
|
idhub_dc_f='docker-compose_idhub-temp.yml'
|
|
|
|
docker compose -f ${idhub_dc_f} down -v \
|
|
|
|
&& make docker_build \
|
2023-11-03 08:59:56 +00:00
|
|
|
&& docker compose -f ${idhub_dc_f} up ${detach:-}
|
2023-10-31 10:00:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
main "${@}"
|