2023-10-10 08:07:46 +00:00
|
|
|
project := dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral
|
|
|
|
|
|
|
|
# docker images
|
2023-10-10 08:54:22 +00:00
|
|
|
# docker images
|
|
|
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
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_commit := `git -C django-orchestra log -1 --format=%h`
|
|
|
|
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}
|
2023-10-10 08:07:46 +00:00
|
|
|
|
|
|
|
docker_build:
|
|
|
|
docker build -f docker/orchestra.Dockerfile -t ${orchestra_image} .
|
|
|
|
docker build -f docker/musician.Dockerfile -t ${musician_image} .
|
|
|
|
|
|
|
|
docker_publish:
|
|
|
|
docker push ${orchestra_image}
|
|
|
|
docker push ${musician_image}
|
|
|
|
|
|
|
|
.PHONY: docker
|
|
|
|
docker:
|
|
|
|
$(MAKE) docker_build
|
|
|
|
$(MAKE) docker_publish
|
|
|
|
@printf "\nimage: ${orchestra_image}\n"
|
|
|
|
@printf "\nimage: ${musician_image}\n"
|
|
|
|
@printf "\ndocker images built and published\n"
|