orchestra temp build
This commit is contained in:
parent
2b433c4d29
commit
1585ece598
5
Makefile
5
Makefile
|
@ -1,6 +1,5 @@
|
|||
project := dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral
|
||||
|
||||
# docker images
|
||||
# docker images
|
||||
|
||||
####
|
||||
|
@ -31,8 +30,8 @@ idhub_tag := ${idhub_branch}__${idhub_commit}
|
|||
idhub_image := ${project}/idhub:${idhub_tag}
|
||||
|
||||
docker_build:
|
||||
#docker build -f docker/orchestra.Dockerfile -t ${orchestra_image} .
|
||||
#docker build -f docker/musician.Dockerfile -t ${musician_image} .
|
||||
docker build -f docker/orchestra.Dockerfile -t ${orchestra_image} -t ${project}/orchestra:latest .
|
||||
#docker build -f docker/musician.Dockerfile -t ${musician_image} -t ${project}/musician:latest .
|
||||
docker build -f docker/idhub.Dockerfile -t ${idhub_image} -t ${project}/idhub:latest .
|
||||
@printf "\n##########################\n"
|
||||
@printf "\nimage: ${orchestra_image}\n"
|
||||
|
|
15
docker-compose_orchestra-temp.yml
Normal file
15
docker-compose_orchestra-temp.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
version: "3.9"
|
||||
services:
|
||||
|
||||
orchestra:
|
||||
init: true
|
||||
image: dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral/orchestra:latest
|
||||
environment:
|
||||
- SECRET_KEY=${ORCHESTRA_SECRET_KEY:-publicsecretisnotsecureVtmKBfxpVV47PpBCF2Nzz2H6qnbd}
|
||||
ports:
|
||||
- "9080:9080"
|
||||
# TODO configure volumes
|
||||
#volumes:
|
||||
# - .:/home
|
||||
|
||||
|
22
orchestra_build.sh
Executable file
22
orchestra_build.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/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 "${@}"
|
Reference in a new issue