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

23 lines
411 B
Bash
Raw Normal View History

2023-11-24 11:33:55 +00:00
#!/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 "${@}"