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.
idhub-docker/orchestra_build.sh
2023-11-24 12:33:55 +01:00

23 lines
411 B
Bash
Executable file

#!/bin/sh
set -e
set -u
# DEBUG
set -x
main() {
deployment="${1:-}"
# detach on production deployment
if [ "${deployment}" = 'prod' ]; then
detach='-d'
fi
dcf='docker-compose_orchestra-temp.yml'
docker compose -f ${dcf} down -v \
&& make docker_build \
&& docker compose -f ${dcf} up ${detach:-}
}
main "${@}"