Compare commits
No commits in common. "265a28c0510e3a4054125c792beb4c0984242e7a" and "f68e1638fc2ebf2d0e6643c4f0086cd6dc0dc270" have entirely different histories.
265a28c051
...
f68e1638fc
11
.env.example
11
.env.example
|
@ -10,14 +10,3 @@
|
||||||
# specially useful if you want to deploy in a specific domain
|
# specially useful if you want to deploy in a specific domain
|
||||||
#MUSICIAN_API_BASE_URL='https://orchestra.example.org'
|
#MUSICIAN_API_BASE_URL='https://orchestra.example.org'
|
||||||
#MUSICIAN_ALLOWED_HOSTS='musician.example.org'
|
#MUSICIAN_ALLOWED_HOSTS='musician.example.org'
|
||||||
# IDHUB
|
|
||||||
####
|
|
||||||
|
|
||||||
#IDHUB_SECRET_KEY='uncomment-it-and-fill-this'
|
|
||||||
IDHUB_USER='admin'
|
|
||||||
IDHUB_PASSWD='admin'
|
|
||||||
IDHUB_EMAIL='admin@example.org'
|
|
||||||
# enable dev flags when DEVELOPMENT deployment
|
|
||||||
IDHUB_DEPLOYMENT='DEVELOPMENT'
|
|
||||||
# adapt to your domain in a production/reverse proxy env
|
|
||||||
IDHUB_CSRF_TRUSTED_ORIGINS='https://idhub.example.org'
|
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -33,7 +33,7 @@ idhub_image := ${project}/idhub:${idhub_tag}
|
||||||
docker_build:
|
docker_build:
|
||||||
#docker build -f docker/orchestra.Dockerfile -t ${orchestra_image} .
|
#docker build -f docker/orchestra.Dockerfile -t ${orchestra_image} .
|
||||||
#docker build -f docker/musician.Dockerfile -t ${musician_image} .
|
#docker build -f docker/musician.Dockerfile -t ${musician_image} .
|
||||||
docker build -f docker/idhub.Dockerfile -t ${idhub_image} -t ${project}/idhub:latest .
|
docker build -f docker/idhub.Dockerfile -t ${idhub_image} .
|
||||||
@printf "\n##########################\n"
|
@printf "\n##########################\n"
|
||||||
@printf "\nimage: ${orchestra_image}\n"
|
@printf "\nimage: ${orchestra_image}\n"
|
||||||
@printf "\nimage: ${musician_image}\n"
|
@printf "\nimage: ${musician_image}\n"
|
||||||
|
|
|
@ -3,7 +3,7 @@ services:
|
||||||
|
|
||||||
idhub:
|
idhub:
|
||||||
init: true
|
init: true
|
||||||
image: dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral/idhub:latest
|
image: dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral/idhub:main__233d8df
|
||||||
environment:
|
environment:
|
||||||
- SECRET_KEY=${IDHUB_SECRET_KEY:-publicsecretisnotsecureVtmKBfxpVV47PpBCF2Nzz2H6qnbd}
|
- SECRET_KEY=${IDHUB_SECRET_KEY:-publicsecretisnotsecureVtmKBfxpVV47PpBCF2Nzz2H6qnbd}
|
||||||
- ALLOWED_HOSTS=${IDHUB_ALLOWED_HOSTS:-*}
|
- ALLOWED_HOSTS=${IDHUB_ALLOWED_HOSTS:-*}
|
||||||
|
@ -14,6 +14,5 @@ services:
|
||||||
- DJANGO_SUPERUSER_PASSWORD=${IDHUB_PASSWD}
|
- DJANGO_SUPERUSER_PASSWORD=${IDHUB_PASSWD}
|
||||||
- DJANGO_SUPERUSER_EMAIL=${IDHUB_EMAIL}
|
- DJANGO_SUPERUSER_EMAIL=${IDHUB_EMAIL}
|
||||||
- DEPLOYMENT=${IDHUB_DEPLOYMENT}
|
- DEPLOYMENT=${IDHUB_DEPLOYMENT}
|
||||||
- CSRF_TRUSTED_ORIGINS=${IDHUB_CSRF_TRUSTED_ORIGINS}
|
|
||||||
ports:
|
ports:
|
||||||
- 7000:7000
|
- 7000:7000
|
||||||
|
|
|
@ -6,17 +6,10 @@ set -u
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
deployment="${1:-}"
|
|
||||||
|
|
||||||
# detach on production deployment
|
|
||||||
if [ "${deployment}" = 'prod' ]; then
|
|
||||||
detach='-d'
|
|
||||||
fi
|
|
||||||
|
|
||||||
idhub_dc_f='docker-compose_idhub-temp.yml'
|
idhub_dc_f='docker-compose_idhub-temp.yml'
|
||||||
docker compose -f ${idhub_dc_f} down -v \
|
docker compose -f ${idhub_dc_f} down -v \
|
||||||
&& make docker_build \
|
&& make docker_build \
|
||||||
&& docker compose -f ${idhub_dc_f} up ${detach:-}
|
&& docker compose -f ${idhub_dc_f} up
|
||||||
}
|
}
|
||||||
|
|
||||||
main "${@}"
|
main "${@}"
|
||||||
|
|
Reference in a new issue