add idhub repo (TODO docker part)
This commit is contained in:
parent
24560d2370
commit
f84539f6b7
|
@ -5,3 +5,4 @@
|
||||||
|
|
||||||
django-orchestra
|
django-orchestra
|
||||||
django-musician
|
django-musician
|
||||||
|
IdHub
|
||||||
|
|
25
Makefile
25
Makefile
|
@ -3,26 +3,33 @@ project := dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral
|
||||||
# docker images
|
# docker images
|
||||||
# docker images
|
# docker images
|
||||||
|
|
||||||
orchestra_branch := `git -C django-orchestra branch --show-current`
|
####
|
||||||
orchestra_commit := `git -C django-orchestra log -1 --format=%h`
|
# orchestra image tag
|
||||||
orchestra_tag := ${orchestra_branch}__${orchestra_commit}
|
####
|
||||||
orchestra_image := ${project}/orchestra:${orchestra_tag}
|
|
||||||
|
|
||||||
musician_branch := `git -C django-musician branch --show-current`
|
|
||||||
musician_commit := `git -C django-musician log -1 --format=%h`
|
|
||||||
musician_tag := ${orchestra_branch}__${musician_commit}
|
|
||||||
musician_image := ${project}/musician:${musician_tag}
|
|
||||||
|
|
||||||
orchestra_branch := `git -C django-orchestra branch --show-current`
|
orchestra_branch := `git -C django-orchestra branch --show-current`
|
||||||
orchestra_commit := `git -C django-orchestra log -1 --format=%h`
|
orchestra_commit := `git -C django-orchestra log -1 --format=%h`
|
||||||
orchestra_tag := ${orchestra_branch}__${orchestra_commit}
|
orchestra_tag := ${orchestra_branch}__${orchestra_commit}
|
||||||
orchestra_image := ${project}/orchestra:${orchestra_tag}
|
orchestra_image := ${project}/orchestra:${orchestra_tag}
|
||||||
|
|
||||||
|
####
|
||||||
|
# musician image tag
|
||||||
|
####
|
||||||
|
|
||||||
musician_branch := `git -C django-musician branch --show-current`
|
musician_branch := `git -C django-musician branch --show-current`
|
||||||
musician_commit := `git -C django-musician log -1 --format=%h`
|
musician_commit := `git -C django-musician log -1 --format=%h`
|
||||||
musician_tag := ${orchestra_branch}__${musician_commit}
|
musician_tag := ${orchestra_branch}__${musician_commit}
|
||||||
musician_image := ${project}/musician:${musician_tag}
|
musician_image := ${project}/musician:${musician_tag}
|
||||||
|
|
||||||
|
####
|
||||||
|
# idhub image tag
|
||||||
|
####
|
||||||
|
|
||||||
|
idhub_branch := `git -C django-idhub branch --show-current`
|
||||||
|
idhub_commit := `git -C django-idhub log -1 --format=%h`
|
||||||
|
idhub_tag := ${orchestra_branch}__${idhub_commit}
|
||||||
|
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} .
|
||||||
|
|
|
@ -8,7 +8,8 @@ set -x
|
||||||
# clone or pull git repo
|
# clone or pull git repo
|
||||||
_pull() {
|
_pull() {
|
||||||
myurl="${1}"
|
myurl="${1}"
|
||||||
mydir="$(basename "${myurl}")"
|
mydir_raw="$(basename "${myurl}")"
|
||||||
|
mydir="${mydir_raw%.git}"
|
||||||
mybranch="${2}"
|
mybranch="${2}"
|
||||||
|
|
||||||
if [ -d "${mydir}" ]; then
|
if [ -d "${mydir}" ]; then
|
||||||
|
@ -25,6 +26,7 @@ _pull() {
|
||||||
main() {
|
main() {
|
||||||
_pull 'https://gitea.pangea.org/pangea/django-orchestra' 'sso'
|
_pull 'https://gitea.pangea.org/pangea/django-orchestra' 'sso'
|
||||||
_pull 'https://gitea.pangea.org/pangea/django-musician' 'sso'
|
_pull 'https://gitea.pangea.org/pangea/django-musician' 'sso'
|
||||||
|
_pull 'git@gitea.pangea.org:trustchain-oc1-orchestral/IdHub.git' 'main'
|
||||||
}
|
}
|
||||||
|
|
||||||
main "${@}"
|
main "${@}"
|
||||||
|
|
Reference in New Issue