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/Makefile

53 lines
1.5 KiB
Makefile
Raw Normal View History

project := dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral
# docker images
2023-10-10 08:54:22 +00:00
# docker images
2023-10-10 09:08:32 +00:00
####
# orchestra image tag
####
2023-10-10 08:54:22 +00:00
orchestra_branch := `git -C django-orchestra branch --show-current`
orchestra_commit := `git -C django-orchestra log -1 --format=%h`
orchestra_tag := ${orchestra_branch}__${orchestra_commit}
orchestra_image := ${project}/orchestra:${orchestra_tag}
2023-10-10 09:08:32 +00:00
####
# musician image tag
####
2023-10-10 08:54:22 +00:00
musician_branch := `git -C django-musician branch --show-current`
musician_commit := `git -C django-musician log -1 --format=%h`
musician_tag := ${musician_branch}__${musician_commit}
2023-10-10 08:54:22 +00:00
musician_image := ${project}/musician:${musician_tag}
2023-10-10 09:08:32 +00:00
####
# idhub image tag
####
2023-10-10 08:54:22 +00:00
idhub_branch := `git -C IdHub branch --show-current`
idhub_commit := `git -C IdHub log -1 --format=%h`
idhub_tag := ${idhub_branch}__${idhub_commit}
2023-10-10 09:08:32 +00:00
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/idhub.Dockerfile -t ${idhub_image} -t ${project}/idhub:latest .
@printf "\n##########################\n"
@printf "\nimage: ${orchestra_image}\n"
@printf "\nimage: ${musician_image}\n"
@printf "\nimage: ${idhub_image}\n"
@printf "\ndocker images built\n"
@printf "\n##########################\n\n"
docker_publish:
docker push ${orchestra_image}
docker push ${musician_image}
docker push ${idhub_image}
.PHONY: docker
docker:
$(MAKE) docker_build
$(MAKE) docker_publish